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/1.13/generated/torch.Tensor.expand_as.html