@@ -20,7 +20,7 @@ limitations under the License.
20
20
21
21
namespace Tensorflow
22
22
{
23
- public static partial class tf
23
+ public partial class tensorflow
24
24
{
25
25
/// <summary>
26
26
/// Concatenates tensors along one dimension.
@@ -29,7 +29,7 @@ public static partial class tf
29
29
/// <param name="axis"></param>
30
30
/// <param name="name"></param>
31
31
/// <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" )
33
33
{
34
34
if ( values . Count == 1 )
35
35
throw new NotImplementedException ( "tf.concat length is 1" ) ;
@@ -48,7 +48,7 @@ public static Tensor concat(IList<Tensor> values, int axis, string name = "conca
48
48
/// A `Tensor` with the same data as `input`, but its shape has an additional
49
49
/// dimension of size 1 added.
50
50
/// </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 )
52
52
=> array_ops . expand_dims ( input , axis , name , dim ) ;
53
53
54
54
/// <summary>
@@ -58,14 +58,14 @@ public static Tensor expand_dims(Tensor input, int axis = -1, string name = null
58
58
/// <param name="value"></param>
59
59
/// <param name="name"></param>
60
60
/// <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 )
62
62
=> gen_array_ops . fill ( dims , value , name : name ) ;
63
63
64
64
/// <summary>
65
65
/// Return the elements, either from `x` or `y`, depending on the `condition`.
66
66
/// </summary>
67
67
/// <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 )
69
69
=> array_ops . where ( condition , x , y , name ) ;
70
70
71
71
/// <summary>
@@ -76,10 +76,10 @@ public static Tensor where<Tx, Ty>(Tensor condition, Tx x, Ty y, string name = n
76
76
/// <param name="name"></param>
77
77
/// <param name="conjugate"></param>
78
78
/// <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 )
80
80
=> array_ops . transpose ( a , perm , name , conjugate ) ;
81
81
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 )
83
83
=> gen_array_ops . squeeze ( input , axis , name ) ;
84
84
85
85
/// <summary>
@@ -89,10 +89,10 @@ public static Tensor squeeze(Tensor input, int[] axis = null, string name = null
89
89
/// <param name="axis"></param>
90
90
/// <param name="name"></param>
91
91
/// <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" )
93
93
=> array_ops . stack ( values , axis , name : name ) ;
94
94
95
- public static Tensor one_hot ( Tensor indices , int depth ,
95
+ public Tensor one_hot ( Tensor indices , int depth ,
96
96
Tensor on_value = null ,
97
97
Tensor off_value = null ,
98
98
TF_DataType dtype = TF_DataType . DtInvalid ,
@@ -110,7 +110,7 @@ public static Tensor one_hot(Tensor indices, int depth,
110
110
/// </param>
111
111
/// <param name="name">A name for the operation (optional).</param>
112
112
/// <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 )
114
114
=> gen_array_ops . placeholder_with_default ( input , shape , name : name ) ;
115
115
}
116
116
}
0 commit comments