torch.Tensor.reshape_as
- Tensor.reshape_as(other) → Tensor
Returns this tensor as the same shape as
other.self.reshape_as(other)is equivalent toself.reshape(other.sizes()). This method returns a view if is compatible with the current shape. See on when it is possible to return a view.