Browse Source

Tensor.shape setter: Added missing status.Check(true)

tags/v0.12
Eli Belash 6 years ago
parent
commit
78b81a27ca
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      src/TensorFlowNET.Core/Tensors/Tensor.cs

+ 2
- 0
src/TensorFlowNET.Core/Tensors/Tensor.cs View File

@@ -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);
}
}



Loading…
Cancel
Save