[docs]defset_module(obj,mod):""" Set the module attribute on a python object for a given object for nicer printing """ifnotisinstance(mod,str):raiseTypeError("The mod argument should be a string")obj.__module__=mod
iftorch._running_with_deploy():# not valid inside torch_deploy interpreter, no paths exists for frozen modulescmake_prefix_path=Noneelse:cmake_prefix_path=_osp.join(_osp.dirname(_osp.dirname(__file__)),'share','cmake')
Docs
Access comprehensive developer documentation for PyTorch
To analyze traffic and optimize your experience, we serve cookies on this site. By clicking or navigating, you agree to allow our usage of cookies. As the current maintainers of this site, Facebook’s Cookies Policy applies. Learn more, including about available controls: Cookies Policy.