| 143 | } |
| 144 | |
| 145 | void EagerContext::SetExecutorForThread(EagerExecutor* executor) { |
| 146 | tensorflow::mutex_lock l(executor_map_mu_); |
| 147 | if (executor == &default_executor_) { |
| 148 | thread_local_executor_.erase(std::this_thread::get_id()); |
| 149 | } else { |
| 150 | thread_local_executor_[std::this_thread::get_id()] = executor; |
| 151 | } |
| 152 | } |
| 153 | |
| 154 | void EagerContext::ClearCaches() { |
| 155 | { |
no test coverage detected