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

Method SetExecutorForThread

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

Source from the content-addressed store, hash-verified

143}
144
145void 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
154void EagerContext::ClearCaches() {
155 {

Callers 2

DoCallPyFuncFunction · 0.80

Calls 1

eraseMethod · 0.45

Tested by

no test coverage detected