Skip to content

Commit 78905e3

Browse files
committed
fix unit test.
1 parent cdc0c2e commit 78905e3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/TensorFlowNET.Core/Functions/ConcreteFunction.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public ConcreteFunction(FuncGraph graph, Dictionary<string, string> attrs)
4040
{
4141
func_graph = graph;
4242

43-
ToGraph(graph.Inputs, graph.Outputs);
43+
ToGraph(graph.Inputs, graph.Outputs.Where(x => x != null).ToArray());
4444
}
4545

4646
public ConcreteFunction(Func<Tensor, Tensor> func, TF_DataType dtype)

src/TensorFlowNET.Core/Graphs/AutoGraphAttribute.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public sealed class AutoGraphAttribute : OnMethodBoundaryAspect
1818

1919
public override void OnEntry(MethodExecutionArgs args)
2020
{
21-
func_name = $"autograph_{args.Instance.GetHashCode()}.{args.Method.Name}";
21+
func_name = $"autograph_{args.Instance.GetType().FullName}.{args.Method.Name}";
2222

2323
if (functions.ContainsKey(func_name))
2424
{

0 commit comments

Comments
 (0)