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

Function _is_specific_module_or_its_submodule

python/paddle/compat/proxy.py:153–154  ·  view source on GitHub ↗
(name: str, module: str)

Source from the content-addressed store, hash-verified

151
152
153def _is_specific_module_or_its_submodule(name: str, module: str) -> bool:
154 return name == module or name.startswith(f"{module}.")
155
156
157def _is_torch_module(name: str) -> bool:

Callers 3

_is_torch_moduleFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected