Spec-Zone.ru › PyTorch 2

torch.Tensor.int

Tensor.int(memory_format=torch.preserve_format) → Tensor

self.int() эквивалентно self.to(torch.int32). См. to().

Параметры

memory_format (torch.memory_format, необязательно) – желаемый формат памяти возвращаемого тензора. По умолчанию: torch.preserve_format.

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

Spec-Zone.ru

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