Spec-Zone.ru › PyTorch 2.14

torch.Tensor.is_contiguous

Tensor.is_contiguous(memory_format=torch.contiguous_format) → bool

Возвращает True, если тензор self непрерывно расположен в памяти в порядке, заданном форматом памяти.

Параметры:

memory_format (torch.memory_format, необязательный) – Задает порядок размещения в памяти. По умолчанию: torch.contiguous_format.

© 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.is_contiguous.html

Spec-Zone.ru

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