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

Method is_enabled

tools/cmake/cmake_cache.py:30–34  ·  view source on GitHub ↗
(self, var: str, fallback: bool = False)

Source from the content-addressed store, hash-verified

28 return self.cache.get(var)
29
30 def is_enabled(self, var: str, fallback: bool = False) -> bool:
31 definition = self.get(var)
32 if definition is None:
33 return fallback
34 return CMakeCache._is_truthy(definition.value)
35
36 @staticmethod
37 def _is_truthy(value: Optional[str]) -> bool:

Callers 2

runMethod · 0.95

Calls 2

getMethod · 0.95
_is_truthyMethod · 0.80

Tested by

no test coverage detected