Rate this Page
★★★★★
torch.Tensor.reshape#
- Tensor.reshape(*shape)→Tensor#
Returns a tensor with the same data and number of elements as
selfbut with the specified shape. This method returns a view ifshapeiscompatible with the current shape. Seetorch.Tensor.view()on when it ispossible to return a view.
On this page