MCPcopy Create free account
hub / github.com/pytorch/pytorch / check_negative_env_flag

Function check_negative_env_flag

tools/setup_helpers/env.py:29–30  ·  view source on GitHub ↗
(name: str, default: str = "")

Source from the content-addressed store, hash-verified

27
28
29def check_negative_env_flag(name: str, default: str = "") -> bool:
30 return os.getenv(name, default).upper() in ["OFF", "0", "NO", "FALSE", "N"]
31
32
33def gather_paths(env_vars: Iterable[str]) -> List[str]:

Callers 3

build_caffe2Function · 0.85
cmake.pyFile · 0.85
numpy_.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…