torch.Tensor.view_as
-
Tensor.view_as(other) → Tensor -
Представить этот тензор с таким же размером, как и
other.self.view_as(other)эквивалентноself.view(other.size()).Для получения дополнительной информации об
view, пожалуйста, обратитесь кview().- Параметры:
-
other (
torch.Tensor) – Результирующий тензор имеет такой же размер, как иother.
© 2024, PyTorch Contributors
PyTorch has a BSD-style license, as found in the LICENSE file.
https://pytorch.org/docs/1.13/generated/torch.Tensor.view_as.html