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

Function _parse_scope

python/paddle/compat/proxy.py:441–446  ·  view source on GitHub ↗
(scope: str | Iterable[str] | None)

Source from the content-addressed store, hash-verified

439
440
441def _parse_scope(scope: str | Iterable[str] | None) -> set[str] | None:
442 if scope is None:
443 return None
444 if isinstance(scope, str):
445 return {scope}
446 return set(scope)
447
448
449def enable_torch_proxy(

Callers 2

enable_torch_proxyFunction · 0.85
use_torch_proxy_guardFunction · 0.85

Calls 1

setClass · 0.85

Tested by

no test coverage detected