| 140 | } |
| 141 | |
| 142 | void 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 |
nothing calls this directly
no test coverage detected