diff --git a/src/TensorFlowNET.Core/Tensors/tensor_util.cs b/src/TensorFlowNET.Core/Tensors/tensor_util.cs index d4e6c7f1..e0cdd5e0 100644 --- a/src/TensorFlowNET.Core/Tensors/tensor_util.cs +++ b/src/TensorFlowNET.Core/Tensors/tensor_util.cs @@ -123,6 +123,8 @@ namespace Tensorflow } else values = Convert.ChangeType(values, new_system_dtype); + + dtype = values.GetDataType(); } shape = shape ?? values.GetShape();