Skip to content

Commit 67cf274

Browse files
committed
Remove debug informations before.
1 parent 747e658 commit 67cf274

File tree

3 files changed

+3
-13
lines changed

3 files changed

+3
-13
lines changed

src/TensorFlowNET.Core/Training/Saving/SavedModel/function_deserialization.cs

+1-5
Original file line numberDiff line numberDiff line change
@@ -116,12 +116,8 @@ public static Dictionary<string, ConcreteFunction> load_function_def_library(Fun
116116
}
117117

118118
Dictionary<string, ConcreteFunction> loaded_gradients = new();
119-
// Debug(Rinne)
120-
var temp = _sort_function_defs(library, function_deps);
121-
int i = 0;
122-
foreach (var fdef in temp)
119+
foreach (var fdef in _sort_function_defs(library, function_deps))
123120
{
124-
i++;
125121
var orig_name = _fix_fdef_in_place(fdef, functions, load_shared_name_suffix, new_gradient_op_types);
126122

127123
object structured_input_signature = null;

src/TensorFlowNET.Core/Training/Saving/SavedModel/loader.cs

-6
Original file line numberDiff line numberDiff line change
@@ -214,12 +214,6 @@ private List<int> _generate_ordered_node_ids()
214214
continue;
215215
}
216216
var proto = _proto.Nodes[node_id];
217-
if(node_id == 10522)
218-
{
219-
// Debug(Rinne)
220-
Console.WriteLine();
221-
}
222-
var temp = _get_node_dependencies(proto);
223217
foreach (var dep in _get_node_dependencies(proto).Values.Distinct())
224218
{
225219
deps.Add(dep);

test/TensorFlowNET.Keras.UnitTest/Layers/ModelSaveTest.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ public void GetAndFromConfig()
1818
{
1919
var model = GetFunctionalModel();
2020
var config = model.get_config();
21-
Debug.Assert(config is ModelConfig);
22-
var new_model = new ModelsApi().from_config(config as ModelConfig);
21+
Debug.Assert(config is FunctionalConfig);
22+
var new_model = new ModelsApi().from_config(config as FunctionalConfig);
2323
Assert.AreEqual(model.Layers.Count, new_model.Layers.Count);
2424
}
2525

0 commit comments

Comments
 (0)