@@ -79,42 +79,6 @@ public static ITensorOrOperation[] import_graph_def(GraphDef graph_def,
7979 return _GatherReturnElements ( return_elements , graph , results ) ;
8080 }
8181
82- //private static ITensorOrOperation[] _import_graph_def_internal(GraphDef graph_def, Dictionary<string, Tensor> input_map = null, string[] return_elements = null,
83- // bool validate_colocation_constraints = true, string name = null, OpList producer_op_list = null)
84- //{
85- // graph_def = _ProcessGraphDefParam(graph_def);
86- // input_map = _ProcessInputMapParam(input_map);
87- // return_elements = _ProcessReturnElementsParam(return_elements);
88-
89- // if(producer_op_list is not null)
90- // {
91- // _RemoveDefaultAttrs(producer_op_list, graph_def);
92- // }
93-
94- // var graph = ops.get_default_graph();
95- // string prefix = null;
96- // tf_with(ops.name_scope(name, "import", input_map.Values), scope =>
97- // {
98- // if (scope is not null)
99- // {
100- // Debug.Assert(scope.scope_name.EndsWith("/"));
101- // prefix = scope.scope_name[scope.scope_name.Length - 1].ToString();
102- // }
103- // else
104- // {
105- // prefix = "";
106- // }
107-
108- // input_map = _ConvertInputMapValues(name, input_map);
109- // });
110-
111- // var scope_options = c_api_util.ScopedTFImportGraphDefOptions();
112- // var options = scope_options.Options;
113- // _PopulateTFImportGraphDefOptions(scope_options, prefix, input_map, return_elements, validate_colocation_constraints);
114-
115-
116- //}
117-
11882 private static ITensorOrOperation [ ] _GatherReturnElements ( string [ ] requested_return_elements ,
11983 Graph graph ,
12084 TF_ImportGraphDefResults results )
0 commit comments