Browse Source

fix make_tensor_proto didn't set dtype correctly.

tags/v0.60-tf.numpy
Oceania2018 4 years ago
parent
commit
cd2f0c0ec1
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      src/TensorFlowNET.Core/Tensors/tensor_util.cs

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

@@ -123,6 +123,8 @@ namespace Tensorflow
}
else
values = Convert.ChangeType(values, new_system_dtype);

dtype = values.GetDataType();
}

shape = shape ?? values.GetShape();


Loading…
Cancel
Save