@@ -262,15 +262,11 @@ public Operation create_op(string op_type, Tensor[] inputs, TF_DataType[] dtypes
262262
263263 if ( string . IsNullOrEmpty ( name ) )
264264 name = op_type ;
265+
265266 // If a names ends with a '/' it is a "name scope" and we use it as-is,
266267 // after removing the trailing '/'.
267268 name = name . EndsWith ( "/" ) ? ops . name_from_scope_name ( name ) : unique_name ( name ) ;
268269 var node_def = ops . _NodeDef ( op_type , name , device : "" , attrs : attrs ) ;
269-
270- if ( name . Contains ( "define_loss/bigger_box_loss/mul_13" ) )
271- {
272-
273- }
274270
275271 var input_ops = inputs . Select ( x => x . op ) . ToArray ( ) ;
276272 var control_inputs = _control_dependencies_for_inputs ( input_ops ) ;
@@ -377,7 +373,11 @@ public string name_scope(string name)
377373 /// <returns>A string to be passed to `create_op()` that will be used
378374 /// to name the operation being created.</returns>
379375 public string unique_name ( string name , bool mark_as_used = true )
380- {
376+ {
377+ if ( name . EndsWith ( "basic_r_n_n_cell" ) )
378+ {
379+
380+ }
381381 if ( ! String . IsNullOrEmpty ( _name_stack ) )
382382 name = _name_stack + "/" + name ;
383383 // For the sake of checking for names in use, we treat names as case
@@ -405,7 +405,7 @@ public string unique_name(string name, bool mark_as_used = true)
405405
406406 // Return the new name with the original capitalization of the given name.
407407 name = $ "{ name } _{ i - 1 } ";
408- }
408+ }
409409 return name ;
410410 }
411411
0 commit comments