| 254 | } // namespace |
| 255 | |
| 256 | tensorflow::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 | |
| 265 | tensorflow::Fprint128 AttrBuilder::BuildCacheKeyForDevice( |
| 266 | const StringPiece device) const { |
no outgoing calls