From 78b81a27cae8af78b75dcd47f2b536c2efb43d17 Mon Sep 17 00:00:00 2001 From: Eli Belash Date: Sat, 7 Sep 2019 22:39:29 +0300 Subject: [PATCH] Tensor.shape setter: Added missing status.Check(true) --- src/TensorFlowNET.Core/Tensors/Tensor.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/TensorFlowNET.Core/Tensors/Tensor.cs b/src/TensorFlowNET.Core/Tensors/Tensor.cs index fa36a7c9..a4e156c1 100644 --- a/src/TensorFlowNET.Core/Tensors/Tensor.cs +++ b/src/TensorFlowNET.Core/Tensors/Tensor.cs @@ -125,6 +125,8 @@ namespace Tensorflow c_api.TF_GraphSetTensorShape(this.graph, this._as_tf_output(), null, -1, status); else c_api.TF_GraphSetTensorShape(this.graph, this._as_tf_output(), value.Select(Convert.ToInt64).ToArray(), value.Length, status); + + status.Check(true); } }