torch.Tensor.view_as¶
- Tensor.view_as(other) Tensor¶
將此 tensor 檢視為與
other大小相同。self.view_as(other)等效於self.view(other.size())。請參閱
view()獲取更多關於view的資訊。- 引數
other (
torch.Tensor) – 結果 tensor 的大小與other相同。
將此 tensor 檢視為與 other 大小相同。self.view_as(other) 等效於 self.view(other.size())。
請參閱 view() 獲取更多關於 view 的資訊。
other (torch.Tensor) – 結果 tensor 的大小與 other 相同。