MCPcopy Create free account
hub / github.com/pytorch/executorch / _is_truthy

Method _is_truthy

tools/cmake/cmake_cache.py:37–40  ·  view source on GitHub ↗
(value: Optional[str])

Source from the content-addressed store, hash-verified

35
36 @staticmethod
37 def _is_truthy(value: Optional[str]) -> bool:
38 if (value is None) or (value.lower().strip() in _FALSE_VALUES):
39 return False
40 return True
41
42 @staticmethod
43 def read_cmake_cache(cache_path: str) -> Dict[str, CacheValue]:

Callers 1

is_enabledMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected