Spec-Zone.ru › PyTorch 1

torch.Tensor.is_contiguous

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

Returns True if self tensor is contiguous in memory in the order specified by memory format.

Parameters:

memory_format (torch.memory_format, optional) – Specifies memory allocation order. Default: torch.contiguous_format.

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

Spec-Zone.ru

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