Browse Source

fix init ndarray in int array. #884

tags/TimeSeries
Oceania2018 3 years ago
parent
commit
6d21358331
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      src/TensorFlowNET.Core/Numpy/NDArray.Creation.cs

+ 3
- 0
src/TensorFlowNET.Core/Numpy/NDArray.Creation.cs View File

@@ -25,6 +25,9 @@ namespace Tensorflow.NumPy
public NDArray(byte[] bytes, Shape shape, TF_DataType dtype) : base(bytes, shape, dtype)
=> NewEagerTensorHandle();

public NDArray(int[] value, Shape? shape = null) : base(value, shape)
=> NewEagerTensorHandle();

public NDArray(long[] value, Shape? shape = null) : base(value, shape)
=> NewEagerTensorHandle();



Loading…
Cancel
Save