fromArray
Constructs a tensor with the specified shape and data.
Return
Parameters
shape
the desired shape for the tensor.
array
one-dimensional data array.
Constructs a tensor with the specified shape and data.
the desired shape for the tensor.
one-dimensional data array.