MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / LookUp

Method LookUp

tensorflow/compiler/xla/service/compilation_cache.cc:54–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52}
53
54StatusOr<std::shared_ptr<Executable>> CompilationCache::LookUp(
55 const ExecutionHandle& handle) const {
56 tensorflow::mutex_lock lock(mutex_);
57
58 CacheKey key = handle.handle();
59 VLOG(2) << "looking up cache key: " << key;
60 if (cache_.count(key) == 0) {
61 VLOG(2) << "cache key not found: " << key;
62 return InvalidArgumentStrCat("can not find executable with handle ", key);
63 } else {
64 auto& result = cache_.at(key);
65 VLOG(2) << "hit executable: " << result->module().name();
66 return result;
67 }
68}
69
70} // namespace xla

Callers 7

RegisterCustomBuiltinOpsFunction · 0.45
GetUnregisteredAttrsFunction · 0.45
PreprocessGraphDefFunction · 0.45

Calls 6

InvalidArgumentStrCatFunction · 0.85
nameMethod · 0.65
handleMethod · 0.45
countMethod · 0.45
atMethod · 0.45
moduleMethod · 0.45

Tested by

no test coverage detected