jet.reshape

reshape(*args, **kwargs)

Overloaded function.

  1. 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

  1. 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