Returns a tensor with its size changed.
The tensor
The size to change to
const result = Chalkboard.tens.resize([[1, 2], [3, 4]], 4); // Returns [1, 2, 3, 4] Copy
const result = Chalkboard.tens.resize([[1, 2], [3, 4]], 4); // Returns [1, 2, 3, 4]
Returns a tensor with its size changed.