@@ -197,23 +197,17 @@ struct MIGRAPHX_EXPORT shape
197197    explicit  shape (const  std::vector<shape>& subs);
198198
199199    /* *
200-      * Creates an output shape with dimensions equal to the input lengths and strides determined 
201-      * by the permutation argument such that find_permutation() of the output shape returns the 
202-      * inputted permuation. 
200+      * Creates an output shape with dimensions `l` and strides computed to fulfill the given 
201+      * permutation. 
203202     * 
204-      * 2D example: 
205-      *   parameters: 
206-      *     l = [2, 3], perm = [1, 0] 
207-      *   therefore: 
208-      *     "original" shape = {lens = [3, 2], strides = [2, 1]} 
209-      *     output_shape = {lens = [2, 3], strides = [1, 2] 
203+      * `t` = shape type 
204+      * `l` = output dimensions 
205+      * `perm` = order dimensions from slowest dimension to fastest dimension 
210206     * 
211-      * 3D example: 
212-      *   parameters: 
213-      *     l = [2, 3, 4], perm = [1, 2, 0] 
214-      *   therefore: 
215-      *     "original" shape = {lens = [3, 4, 2], strides = [8, 2, 1]} 
216-      *     output_shape = {lens = [2, 3, 4], strides = [1, 8, 2]} 
207+      *  Example: 
208+      *      `t` = float_type, `l` = [2, 3, 4], `perm` = [1, 2, 0] 
209+      *      axis=1 to slowest dimension, axis=2 to second slowest, axis=0 to fastest 
210+      *      returns shape{type = float, lens = [2, 3, 4], strides = [1, 8 ,2]} 
217211     */  
218212    static  shape
219213    from_permutation (type_t  t, const  std::vector<std::size_t >& l, const  std::vector<int64_t >& perm);
0 commit comments