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

Method TestOnlyReset

tensorflow/core/common_runtime/process_state.cc:142–152  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

140}
141
142void ProcessState::TestOnlyReset() {
143 mutex_lock lock(mu_);
144 // Don't delete this value because it's static.
145 Allocator* default_cpu_allocator = cpu_allocator_base();
146 mem_desc_map_.clear();
147 for (Allocator* a : cpu_allocators_) {
148 if (a != default_cpu_allocator) delete a;
149 }
150 cpu_allocators_.clear();
151 gtl::STLDeleteElements(&cpu_al_);
152}
153
154} // namespace tensorflow

Callers

nothing calls this directly

Calls 3

cpu_allocator_baseFunction · 0.85
STLDeleteElementsFunction · 0.85
clearMethod · 0.45

Tested by

no test coverage detected