Spec-Zone.ru › PyTorch 2.14

torch.Tensor.expand_as

Tensor.expand_as(other) → Tensor

Расширяет этот тензор до размера other. self.expand_as(other) эквивалентен self.expand(other.size()).

Дополнительные сведения о expand см. в разделе expand().

Параметры:

other (torch.Tensor) – Результирующий тензор имеет тот же размер, что и other.

© 2026, PyTorch Contributors
PyTorch has a BSD-style license, as found in the LICENSE file.
https://docs.pytorch.org/docs/2.14/generated/torch.Tensor.expand_as.html

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API