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

Method CacheKey

tensorflow/core/common_runtime/eager/attr_builder.cc:256–263  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

254} // namespace
255
256tensorflow::Fprint128 AttrBuilder::CacheKey(const StringPiece device) {
257 if (!cached_cache_key_ || device != device_for_cached_cache_key_) {
258 cached_cache_key_ = BuildCacheKeyForDevice(device);
259 device_for_cached_cache_key_ = string(device);
260 }
261
262 return *cached_cache_key_;
263}
264
265tensorflow::Fprint128 AttrBuilder::BuildCacheKeyForDevice(
266 const StringPiece device) const {

Callers 3

BuildEagerOpMethod · 0.80
TESTFunction · 0.80
EagerLocalExecuteFunction · 0.80

Calls

no outgoing calls

Tested by 1

TESTFunction · 0.64