torch.utils.set_module
-
torch.utils.set_module(obj, mod)[исходный код] -
Задаёт атрибут модуля для объекта Python, чтобы он отображался в более удобном виде.
© 2026, PyTorch Contributors
PyTorch has a BSD-style license, as found in the LICENSE file.
https://docs.pytorch.org/docs/2.14/generated/torch.utils.set_module.html