| 137 | } |
| 138 | |
| 139 | EagerExecutor* EagerContext::Executor() { |
| 140 | tf_shared_lock l(executor_map_mu_); |
| 141 | return gtl::FindWithDefault(thread_local_executor_, |
| 142 | std::this_thread::get_id(), &default_executor_); |
| 143 | } |
| 144 | |
| 145 | void EagerContext::SetExecutorForThread(EagerExecutor* executor) { |
| 146 | tensorflow::mutex_lock l(executor_map_mu_); |
no outgoing calls
no test coverage detected