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