torch.Tensor.is_contiguous
-
Tensor.is_contiguous(memory_format=torch.contiguous_format) → bool -
Возвращает True, если
selfтензор непрерывный в памяти в порядке, заданном форматом памяти.- Параметры
-
memory_format (
torch.memory_format, необязательно) – Указывает порядок выделения памяти. По умолчанию:torch.contiguous_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.is_contiguous.html