@@ -112,7 +112,7 @@ public static NDArrayOrSymbol cumsum(NDArrayOrSymbol a, int? axis, DType dtype,
112
112
}
113
113
return sym_np_ops . cumsum ( a , axis , dtype , @out ) ;
114
114
}
115
- public static NDArrayOrSymbol reshape ( NDArrayOrSymbol a , Shape newshape , bool reverse , String order )
115
+ public static NDArrayOrSymbol reshape ( NDArrayOrSymbol a , Shape newshape , bool reverse = false , String order = "C" )
116
116
{
117
117
if ( a . IsNDArray )
118
118
{
@@ -176,7 +176,7 @@ public static NDArrayOrSymbol diagonal(NDArrayOrSymbol a, int offset, int axis1,
176
176
}
177
177
return sym_np_ops . diagonal ( a , offset , axis1 , axis2 ) ;
178
178
}
179
- public static NDArrayOrSymbol sum ( NDArrayOrSymbol a , int ? axis , DType dtype , NDArrayOrSymbol @out , bool keepdims , float ? initial )
179
+ public static NDArrayOrSymbol sum ( NDArrayOrSymbol a , int ? axis = null , DType dtype = null , NDArrayOrSymbol @out = null , bool keepdims = false , float ? initial = null )
180
180
{
181
181
if ( a . IsNDArray )
182
182
{
@@ -328,7 +328,7 @@ public static NDArrayOrSymbol softmax(NDArrayOrSymbol data, int axis, NDArrayOrS
328
328
}
329
329
return Sym . Numpy . npx . softmax ( data , axis , length , temperature , use_length , dtype ) ;
330
330
}
331
- public static NDArrayOrSymbol log_softmax ( NDArrayOrSymbol data , int axis , NDArrayOrSymbol length , Double ? temperature , bool use_length , DType dtype )
331
+ public static NDArrayOrSymbol log_softmax ( NDArrayOrSymbol data , int axis , NDArrayOrSymbol length = null , Double ? temperature = null , bool use_length = false , DType dtype = null )
332
332
{
333
333
if ( data . IsNDArray )
334
334
{
@@ -360,7 +360,7 @@ public static NDArrayOrSymbol pick(NDArrayOrSymbol data, NDArrayOrSymbol index,
360
360
}
361
361
return Sym . Numpy . npx . pick ( data , index , axis , mode , keepdims ) ;
362
362
}
363
- public static NDArrayOrSymbol reshape_like ( NDArrayOrSymbol lhs , NDArrayOrSymbol rhs , int ? lhs_begin , int ? lhs_end , int ? rhs_begin , int ? rhs_end )
363
+ public static NDArrayOrSymbol reshape_like ( NDArrayOrSymbol lhs , NDArrayOrSymbol rhs , int ? lhs_begin = null , int ? lhs_end = null , int ? rhs_begin = null , int ? rhs_end = null )
364
364
{
365
365
if ( lhs . IsNDArray )
366
366
{
@@ -563,7 +563,7 @@ public static NDArrayOrSymbol average(NDArrayOrSymbol a, int? axis, NDArrayOrSym
563
563
}
564
564
return sym_np_ops . average ( a , axis , weights , returned , @out ) ;
565
565
}
566
- public static NDArrayOrSymbol mean ( NDArrayOrSymbol a , int ? axis , DType dtype , NDArrayOrSymbol @out , bool keepdims )
566
+ public static NDArrayOrSymbol mean ( NDArrayOrSymbol a , int ? axis = null , DType dtype = null , NDArrayOrSymbol @out = null , bool keepdims = false )
567
567
{
568
568
if ( a . IsNDArray )
569
569
{
@@ -1575,5 +1575,15 @@ public static NDArrayOrSymbolList split(NDArrayOrSymbol ary, int[] indices_or_se
1575
1575
}
1576
1576
return sym_np_ops . split ( ary , indices_or_sections , axis ) ;
1577
1577
}
1578
+
1579
+ public static NDArrayOrSymbol norm ( NDArrayOrSymbol x , string ord = null , Shape axis = null , bool keepdims = false )
1580
+ {
1581
+ if ( x . IsNDArray )
1582
+ {
1583
+ return nd_np_ops . linalg . norm ( x , ord , axis , keepdims ) ;
1584
+ }
1585
+
1586
+ return sym_np_ops . linalg . norm ( x , ord , axis , keepdims ) ;
1587
+ }
1578
1588
}
1579
1589
}
0 commit comments