jet.reshape¶
-
reshape
(*args, **kwargs)¶ Overloaded function.
reshape(tensor: jet.bindings.TensorC64, shape: List[int]) -> jet.bindings.TensorC64
Reshapes a tensor object to the given dimensions.
- Parameters
tensor (Tensor) – Tensor object to reshape.
shape (Sequence[int]) – Index dimensionality of the reshaped tensor object.
- Returns
Reshaped copy of the given tensor object.
- Return type
Tensor
reshape(tensor: jet.bindings.TensorC128, shape: List[int]) -> jet.bindings.TensorC128
Reshapes a tensor object to the given dimensions.
- Parameters
tensor (Tensor) – Tensor object to reshape.
shape (Sequence[int]) – Index dimensionality of the reshaped tensor object.
- Returns
Reshaped copy of the given tensor object.
- Return type
Tensor
code/api/jet.reshape
Download Python script
Download Notebook
View on GitHub