Skip to content

Commit a30df75

Browse files
committed
Upgrade NumSharp.Lite to v0.1.10.
1 parent e75a111 commit a30df75

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

src/TensorFlowNET.Core/Graphs/SubGraphUtility.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,8 @@ public static Dictionary<ITensorOrOperation, Operation> lift_to_graph(Tensors in
9595
_copy_non_source(op, graph, op_map, base_graph);
9696
}
9797

98+
tf.Context.restore_mode();
99+
98100
return op_map;
99101
}
100102

src/TensorFlowNET.Core/Tensorflow.Binding.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ TensorFlow .NET v0.30 is focused on making more Keras API work including:
8383

8484
<ItemGroup>
8585
<PackageReference Include="MethodBoundaryAspect.Fody" Version="2.0.138" />
86-
<PackageReference Include="NumSharp.Lite" Version="0.1.9" />
86+
<PackageReference Include="NumSharp.Lite" Version="0.1.10" />
8787
<PackageReference Include="Protobuf.Text" Version="0.4.0" />
8888
<PackageReference Include="Serilog.Sinks.Console" Version="3.1.1" />
8989
</ItemGroup>

src/TensorFlowNET.Keras/BackendImpl.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,7 @@ public NDArray eval_in_eager_or_function(Tensors outputs)
207207
var graph_fn = new ConcreteFunction(exec_graph);
208208

209209
_CURRENT_SCRATCH_GRAPH = null;
210+
tf.Context.restore_mode();
210211
// return outputs.eval();
211212
throw new NotImplementedException("");
212213
}

0 commit comments

Comments
 (0)