From 58de537be5b643c77f887bd13f146894d32bf8f7 Mon Sep 17 00:00:00 2001 From: Yaohui Liu Date: Fri, 19 May 2023 16:14:35 +0800 Subject: [PATCH] fix: status null reference of base session. --- src/TensorFlowNET.Core/Sessions/BaseSession.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/TensorFlowNET.Core/Sessions/BaseSession.cs b/src/TensorFlowNET.Core/Sessions/BaseSession.cs index 0a9cfc2eb..3dab4ec71 100644 --- a/src/TensorFlowNET.Core/Sessions/BaseSession.cs +++ b/src/TensorFlowNET.Core/Sessions/BaseSession.cs @@ -30,6 +30,7 @@ public BaseSession(SafeSessionHandle handle, Graph g) { _handle = handle; _graph = g ?? ops.get_default_graph(); + _status = tf.Status; } public BaseSession(string target = "", Graph g = null, ConfigProto config = null, Status status = null)