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

Method get_global_cache

torch/_inductor/codecache.py:232–237  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

230class PersistentCache(CacheBase):
231 @functools.lru_cache(None)
232 def get_global_cache(self):
233 if self.global_cache_path is None or not self.global_cache_path.is_file():
234 return {}
235 with open(self.global_cache_path) as global_cache_fp:
236 global_cache = json.load(global_cache_fp)
237 return global_cache["cache"]
238
239 def lookup(
240 self,

Callers 1

lookupMethod · 0.95

Calls 1

loadMethod · 0.45

Tested by

no test coverage detected