torch.Tensor.is_set_to
-
Tensor.is_set_to(tensor) → bool -
Возвращает True, если оба тензора указывают на одну и ту же память (одно хранилище, смещение, размер и шаг).
© 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_set_to.html