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

Method SetShouldStoreGraphs

tensorflow/core/common_runtime/eager/context.cc:490–496  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

488bool EagerContext::ShouldStoreGraphs() { return should_store_graphs_.load(); }
489
490void EagerContext::SetShouldStoreGraphs(bool value) {
491 mutex_lock ml(metadata_mu_);
492 should_store_graphs_.store(value);
493 if (!value) {
494 run_metadata_.Clear();
495 }
496}
497
498Status EagerContext::FindDeviceFromName(const char* device_name,
499 Device** device) const {

Calls 1

ClearMethod · 0.45

Tested by

no test coverage detected