@@ -6,31 +6,40 @@ namespace Tensorflow
66{
77 public static partial class tf
88 {
9- public static Tensor add ( Tensor a , Tensor b ) => gen_math_ops . add ( a , b ) ;
9+ public static Tensor add ( Tensor a , Tensor b )
10+ => gen_math_ops . add ( a , b ) ;
1011
11- public static Tensor sub ( Tensor a , Tensor b ) => gen_math_ops . sub ( a , b ) ;
12+ public static Tensor sub ( Tensor a , Tensor b )
13+ => gen_math_ops . sub ( a , b ) ;
1214
13- public static Tensor sqrt ( Tensor a , string name = null ) => gen_math_ops . sqrt ( a , name ) ;
15+ public static Tensor sqrt ( Tensor a , string name = null )
16+ => gen_math_ops . sqrt ( a , name ) ;
1417
1518 public static Tensor subtract < T > ( Tensor x , T [ ] y , string name = null ) where T : struct
1619 => gen_math_ops . sub ( x , ops . convert_to_tensor ( y , dtype : x . dtype . as_base_dtype ( ) , name : "y" ) , name ) ;
1720
18- public static Tensor multiply ( Tensor x , Tensor y ) => gen_math_ops . mul ( x , y ) ;
21+ public static Tensor multiply ( Tensor x , Tensor y )
22+ => gen_math_ops . mul ( x , y ) ;
1923
2024 public static Tensor divide < T > ( Tensor x , T [ ] y , string name = null ) where T : struct
2125 => x / ops . convert_to_tensor ( y , dtype : x . dtype . as_base_dtype ( ) , name : "y" ) ;
2226
23- public static Tensor pow < T1 , T2 > ( T1 x , T2 y ) => gen_math_ops . pow ( x , y ) ;
27+ public static Tensor pow < T1 , T2 > ( T1 x , T2 y )
28+ => gen_math_ops . pow ( x , y ) ;
2429
2530 /// <summary>
2631 /// Computes the sum of elements across dimensions of a tensor.
2732 /// </summary>
2833 /// <param name="input"></param>
2934 /// <param name="axis"></param>
3035 /// <returns></returns>
31- public static Tensor reduce_sum ( Tensor input , int [ ] axis = null ) => math_ops . reduce_sum ( input ) ;
36+ public static Tensor reduce_sum ( Tensor input , int [ ] axis = null )
37+ => math_ops . reduce_sum ( input ) ;
3238
3339 public static Tensor cast ( Tensor x , TF_DataType dtype = TF_DataType . DtInvalid , string name = null )
3440 => math_ops . cast ( x , dtype , name ) ;
41+
42+ public static Tensor argmax ( Tensor input , int axis = - 1 , string name = null , int ? dimension = null , TF_DataType output_type = TF_DataType . TF_INT64 )
43+ => gen_math_ops . arg_max ( input , axis , name : name , output_type : output_type ) ;
3544 }
3645}
0 commit comments