Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PaddlePaddle/Paddle
/ _is_torch_module
Function
_is_torch_module
python/paddle/compat/proxy.py:157–158 ·
view source on GitHub ↗
(name: str)
Source
from the content-addressed store, hash-verified
155
156
157
def
_is_torch_module(name: str) -> bool:
158
return
_is_specific_module_or_its_submodule(name,
"torch"
)
159
160
161
def
_is_torch_proxy_local_enabled_module(name: str, scope: set[str]) -> bool:
Callers
4
find_spec
Method · 0.85
_clear_torch_proxy_modules
Function · 0.85
_swap_torch_modules_to_cache
Function · 0.85
_copy_torch_modules_from_cache
Function · 0.85
Calls
1
_is_specific_module_or_its_submodule
Function · 0.85
Tested by
no test coverage detected