Skip to content

Commit f4450e9

Browse files
committed
output_names exeption if length is zero.
1 parent e5dfe90 commit f4450e9

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/TensorFlowNET.Core/Graphs/FuncGraph.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,11 @@ public void ToGraph(Operation[] opers,
6161
string[] output_names)
6262
{
6363
var status = new Status();
64+
if (output_names != null && output_names.Length == 0)
65+
{
66+
output_names = null;
67+
};
68+
6469
_func_graph_handle = c_api.TF_GraphToFunction(_handle,
6570
_graph_key,
6671
false,

0 commit comments

Comments
 (0)