We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 83151d2 commit 9849829Copy full SHA for 9849829
src/TensorFlowNET.Core/Tensors/Tensor.Value.cs
@@ -52,7 +52,7 @@ protected NDArray GetNDArray(TF_DataType dtype)
52
if (dtype == TF_DataType.TF_STRING)
53
{
54
var str= StringData();
55
- return new NDArray(str, new Shape(str.Length));
+ return new NDArray(str, shape);
56
}
57
58
return new NDArray(this);
src/TensorFlowNET.Core/Tensors/constant_op.cs
@@ -136,6 +136,8 @@ value is NDArray nd &&
136
return new EagerTensor(new[] { val }, Shape.Scalar);
137
case double val:
138
139
+ case IEnumerable<Tensor> val:
140
+ return ops.convert_to_tensor(val);
141
case Array val:
142
return new EagerTensor(val, val.GetShape());
143
default:
0 commit comments