@@ -12,7 +12,7 @@ public class array_ops : Python
1212 public static Tensor zeros ( Shape shape , TF_DataType dtype = TF_DataType . TF_FLOAT , string name = null )
1313 {
1414 dtype = dtype . as_base_dtype ( ) ;
15- return with ( new ops . name_scope ( name , "zeros" , shape ) , scope =>
15+ return with ( ops . name_scope ( name , "zeros" , shape ) , scope =>
1616 {
1717 name = scope ;
1818 switch ( dtype )
@@ -68,7 +68,7 @@ public static Tensor ones_like<T>(T tensor, TF_DataType dtype = TF_DataType.DtIn
6868
6969 private static Tensor ones_like_impl < T > ( T tensor , TF_DataType dtype , string name , bool optimize = true )
7070 {
71- return with ( new ops . name_scope ( name , "ones_like" , new { tensor } ) , scope =>
71+ return with ( ops . name_scope ( name , "ones_like" , new { tensor } ) , scope =>
7272 {
7373 name = scope ;
7474 var tensor1 = ops . convert_to_tensor ( tensor , name : "tensor" ) ;
@@ -84,7 +84,7 @@ private static Tensor ones_like_impl<T>(T tensor, TF_DataType dtype, string name
8484 public static Tensor ones ( Tensor shape , TF_DataType dtype = TF_DataType . TF_FLOAT , string name = null )
8585 {
8686 dtype = dtype . as_base_dtype ( ) ;
87- return with ( new ops . name_scope ( name , "ones" , new { shape } ) , scope =>
87+ return with ( ops . name_scope ( name , "ones" , new { shape } ) , scope =>
8888 {
8989 name = scope ;
9090 var output = gen_array_ops . fill ( shape , constant_op . constant ( 1.0f , dtype : dtype ) , name : name ) ;
@@ -130,7 +130,7 @@ public static Tensor size(Tensor input, string name = null, bool optimize = true
130130
131131 private static Tensor shape_internal ( Tensor input , string name = null , bool optimize = true , TF_DataType out_type = TF_DataType . TF_INT32 )
132132 {
133- return with ( new ops . name_scope ( name , "Shape" , new { input } ) , scope =>
133+ return with ( ops . name_scope ( name , "Shape" , new { input } ) , scope =>
134134 {
135135 name = scope ;
136136
@@ -151,7 +151,7 @@ private static Tensor shape_internal(Tensor input, string name = null, bool opti
151151
152152 private static Tensor size_internal ( Tensor input , string name = null , bool optimize = true , TF_DataType out_type = TF_DataType . TF_INT32 )
153153 {
154- return with ( new ops . name_scope ( name , "Size" , new Tensor [ ] { input } ) , scope =>
154+ return with ( ops . name_scope ( name , "Size" , new Tensor [ ] { input } ) , scope =>
155155 {
156156 name = scope ;
157157
@@ -182,7 +182,7 @@ private static Tensor size_internal(Tensor input, string name = null, bool optim
182182
183183 public static Tensor zeros_like ( Tensor tensor , TF_DataType dtype = TF_DataType . DtInvalid , string name = null , bool optimize = true )
184184 {
185- return with ( new ops . name_scope ( name , "zeros_like" , new Tensor [ ] { tensor } ) , scope =>
185+ return with ( ops . name_scope ( name , "zeros_like" , new Tensor [ ] { tensor } ) , scope =>
186186 {
187187 name = scope ;
188188 tensor = ops . convert_to_tensor ( tensor , name : "tensor" ) ;
0 commit comments