@@ -20,7 +20,7 @@ limitations under the License.
2020
2121namespace Tensorflow
2222{
23- public static partial class tf
23+ public partial class tensorflow
2424 {
2525 /// <summary>
2626 /// Concatenates tensors along one dimension.
@@ -29,7 +29,7 @@ public static partial class tf
2929 /// <param name="axis"></param>
3030 /// <param name="name"></param>
3131 /// <returns>A `Tensor` resulting from concatenation of the input tensors.</returns>
32- public static Tensor concat ( IList < Tensor > values , int axis , string name = "concat" )
32+ public Tensor concat ( IList < Tensor > values , int axis , string name = "concat" )
3333 {
3434 if ( values . Count == 1 )
3535 throw new NotImplementedException ( "tf.concat length is 1" ) ;
@@ -48,7 +48,7 @@ public static Tensor concat(IList<Tensor> values, int axis, string name = "conca
4848 /// A `Tensor` with the same data as `input`, but its shape has an additional
4949 /// dimension of size 1 added.
5050 /// </returns>
51- public static Tensor expand_dims ( Tensor input , int axis = - 1 , string name = null , int dim = - 1 )
51+ public Tensor expand_dims ( Tensor input , int axis = - 1 , string name = null , int dim = - 1 )
5252 => array_ops . expand_dims ( input , axis , name , dim ) ;
5353
5454 /// <summary>
@@ -58,14 +58,14 @@ public static Tensor expand_dims(Tensor input, int axis = -1, string name = null
5858 /// <param name="value"></param>
5959 /// <param name="name"></param>
6060 /// <returns></returns>
61- public static Tensor fill < T > ( Tensor dims , T value , string name = null )
61+ public Tensor fill < T > ( Tensor dims , T value , string name = null )
6262 => gen_array_ops . fill ( dims , value , name : name ) ;
6363
6464 /// <summary>
6565 /// Return the elements, either from `x` or `y`, depending on the `condition`.
6666 /// </summary>
6767 /// <returns></returns>
68- public static Tensor where < Tx , Ty > ( Tensor condition , Tx x , Ty y , string name = null )
68+ public Tensor where < Tx , Ty > ( Tensor condition , Tx x , Ty y , string name = null )
6969 => array_ops . where ( condition , x , y , name ) ;
7070
7171 /// <summary>
@@ -76,10 +76,10 @@ public static Tensor where<Tx, Ty>(Tensor condition, Tx x, Ty y, string name = n
7676 /// <param name="name"></param>
7777 /// <param name="conjugate"></param>
7878 /// <returns></returns>
79- public static Tensor transpose < T1 > ( T1 a , int [ ] perm = null , string name = "transpose" , bool conjugate = false )
79+ public Tensor transpose < T1 > ( T1 a , int [ ] perm = null , string name = "transpose" , bool conjugate = false )
8080 => array_ops . transpose ( a , perm , name , conjugate ) ;
8181
82- public static Tensor squeeze ( Tensor input , int [ ] axis = null , string name = null , int squeeze_dims = - 1 )
82+ public Tensor squeeze ( Tensor input , int [ ] axis = null , string name = null , int squeeze_dims = - 1 )
8383 => gen_array_ops . squeeze ( input , axis , name ) ;
8484
8585 /// <summary>
@@ -89,10 +89,10 @@ public static Tensor squeeze(Tensor input, int[] axis = null, string name = null
8989 /// <param name="axis"></param>
9090 /// <param name="name"></param>
9191 /// <returns></returns>
92- public static Tensor stack ( object values , int axis = 0 , string name = "stack" )
92+ public Tensor stack ( object values , int axis = 0 , string name = "stack" )
9393 => array_ops . stack ( values , axis , name : name ) ;
9494
95- public static Tensor one_hot ( Tensor indices , int depth ,
95+ public Tensor one_hot ( Tensor indices , int depth ,
9696 Tensor on_value = null ,
9797 Tensor off_value = null ,
9898 TF_DataType dtype = TF_DataType . DtInvalid ,
@@ -110,7 +110,7 @@ public static Tensor one_hot(Tensor indices, int depth,
110110 /// </param>
111111 /// <param name="name">A name for the operation (optional).</param>
112112 /// <returns>A `Tensor`. Has the same type as `input`.</returns>
113- public static Tensor placeholder_with_default < T > ( T input , int [ ] shape , string name = null )
113+ public Tensor placeholder_with_default < T > ( T input , int [ ] shape , string name = null )
114114 => gen_array_ops . placeholder_with_default ( input , shape , name : name ) ;
115115 }
116116}
0 commit comments