reshape ( tensor shape -- tensor )
Tensors ยป Manipulating Tensors

Prev:dims ( tensor -- n )
Next:flatten ( tensor -- tensor )


Vocabulary
tensors

Inputs
tensora tensor
shapea sequence


Outputs
tensora tensor


Word description
Reshapes tensor to have shape shape.

Errors
Throws a non-positive-shape-error if the given shape has zero or negative values.

Definition