MCPcopy Create free account
hub / github.com/PaddlePaddle/Paddle / _copy_torch_modules_from_cache

Function _copy_torch_modules_from_cache

python/paddle/compat/proxy.py:401–404  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

399
400
401def _copy_torch_modules_from_cache():
402 for name in list(TORCH_MODULES_CACHE):
403 assert _is_torch_module(name), f"`{name}` is not a PyTorch module"
404 sys.modules[name] = TORCH_MODULES_CACHE[name]
405
406
407def _modify_scope_of_torch_proxy(

Callers 1

disable_torch_proxyFunction · 0.85

Calls 2

listFunction · 0.85
_is_torch_moduleFunction · 0.85

Tested by

no test coverage detected