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