torch.Tensor.view_as#
- Tensor.view_as(other) Tensor#
將此張量視為與
other具有相同大小。self.view_as(other)等價於self.view(other.size())。有關
view的更多資訊,請參閱view()。- 引數
other (
torch.Tensor) – 結果張量的大小與other相同。
將此張量視為與 other 具有相同大小。 self.view_as(other) 等價於 self.view(other.size())。
有關 view 的更多資訊,請參閱 view()。
other (torch.Tensor) – 結果張量的大小與 other 相同。