Reshape¶
This function allows you to take the reshape an input from tensor to vector, or vice versa.
- omtools.std.reshape.reshape(expr: omtools.core.variable.Variable, new_shape: tuple)¶
This function reshapes the input into a new shape.
- Parameters
- expr: Variable
The Variable which you want to reshape
- new_shape: tuple[int]
A tuple of ints specifying the new shape desired
Examples for all the possible use cases are provided below.