| @@ -116,12 +116,8 @@ namespace Tensorflow.Training.Saving.SavedModel | |||||
| } | } | ||||
| Dictionary<string, ConcreteFunction> loaded_gradients = new(); | Dictionary<string, ConcreteFunction> loaded_gradients = new(); | ||||
| // Debug(Rinne) | |||||
| var temp = _sort_function_defs(library, function_deps); | |||||
| int i = 0; | |||||
| foreach (var fdef in temp) | |||||
| foreach (var fdef in _sort_function_defs(library, function_deps)) | |||||
| { | { | ||||
| i++; | |||||
| var orig_name = _fix_fdef_in_place(fdef, functions, load_shared_name_suffix, new_gradient_op_types); | var orig_name = _fix_fdef_in_place(fdef, functions, load_shared_name_suffix, new_gradient_op_types); | ||||
| object structured_input_signature = null; | object structured_input_signature = null; | ||||
| @@ -214,12 +214,6 @@ namespace Tensorflow | |||||
| continue; | continue; | ||||
| } | } | ||||
| var proto = _proto.Nodes[node_id]; | var proto = _proto.Nodes[node_id]; | ||||
| if(node_id == 10522) | |||||
| { | |||||
| // Debug(Rinne) | |||||
| Console.WriteLine(); | |||||
| } | |||||
| var temp = _get_node_dependencies(proto); | |||||
| foreach (var dep in _get_node_dependencies(proto).Values.Distinct()) | foreach (var dep in _get_node_dependencies(proto).Values.Distinct()) | ||||
| { | { | ||||
| deps.Add(dep); | deps.Add(dep); | ||||
| @@ -18,8 +18,8 @@ namespace TensorFlowNET.Keras.UnitTest | |||||
| { | { | ||||
| var model = GetFunctionalModel(); | var model = GetFunctionalModel(); | ||||
| var config = model.get_config(); | var config = model.get_config(); | ||||
| Debug.Assert(config is ModelConfig); | |||||
| var new_model = new ModelsApi().from_config(config as ModelConfig); | |||||
| Debug.Assert(config is FunctionalConfig); | |||||
| var new_model = new ModelsApi().from_config(config as FunctionalConfig); | |||||
| Assert.AreEqual(model.Layers.Count, new_model.Layers.Count); | Assert.AreEqual(model.Layers.Count, new_model.Layers.Count); | ||||
| } | } | ||||