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

Function _clear_torch_proxy_modules

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

Source from the content-addressed store, hash-verified

385
386
387def _clear_torch_proxy_modules():
388 for name, module in list(sys.modules.items()):
389 if _is_torch_module(name) and isinstance(module, ProxyModule):
390 del sys.modules[name]
391
392
393def _swap_torch_modules_to_cache():

Callers 1

disable_torch_proxyFunction · 0.85

Calls 3

listFunction · 0.85
_is_torch_moduleFunction · 0.85
itemsMethod · 0.45

Tested by

no test coverage detected