On this page
torch.utils.set_module
torch.utils.set_module(obj, mod)
[source]-
Set the module attribute on a python object for a given object for nicer printing
© 2024, PyTorch Contributors
PyTorch has a BSD-style license, as found in the LICENSE file.
https://pytorch.org/docs/2.1/generated/torch.utils.set_module.html