Skip to content

Commit 6d21358

Browse files
committed
fix init ndarray in int array. #884
1 parent 02e219b commit 6d21358

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/TensorFlowNET.Core/Numpy/NDArray.Creation.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ public NDArray(Shape shape, TF_DataType dtype = TF_DataType.TF_DOUBLE) : base(sh
2525
public NDArray(byte[] bytes, Shape shape, TF_DataType dtype) : base(bytes, shape, dtype)
2626
=> NewEagerTensorHandle();
2727

28+
public NDArray(int[] value, Shape? shape = null) : base(value, shape)
29+
=> NewEagerTensorHandle();
30+
2831
public NDArray(long[] value, Shape? shape = null) : base(value, shape)
2932
=> NewEagerTensorHandle();
3033

0 commit comments

Comments
 (0)