Remove unused EagerContext::child_threads_
PiperOrigin-RevId: 257879975
This commit is contained in:
parent
e94b94c0fc
commit
296a0da4fc
@ -266,10 +266,6 @@ EagerContext::~EagerContext() {
|
||||
executor_.WaitForAllPendingNodes().IgnoreError();
|
||||
rendezvous_->Unref();
|
||||
|
||||
for (auto& thread : child_threads_) {
|
||||
thread.reset();
|
||||
}
|
||||
|
||||
// Release resources ahead of destroying the device manager as the resource
|
||||
// destructors (e.g. ~IteratorResource) assume devices still exist.
|
||||
for (auto device : local_device_mgr()->ListDevices()) {
|
||||
@ -277,10 +273,6 @@ EagerContext::~EagerContext() {
|
||||
}
|
||||
}
|
||||
|
||||
void EagerContext::AddChildThread(std::unique_ptr<Thread> thread) {
|
||||
child_threads_.push_back(std::move(thread));
|
||||
}
|
||||
|
||||
bool EagerContext::FindFunctionByName(const string& name) {
|
||||
mutex_lock l(functions_mu_);
|
||||
return func_lib_def_.Find(name) != nullptr;
|
||||
|
||||
@ -323,9 +323,6 @@ class EagerContext : public core::RefCounted {
|
||||
|
||||
tensorflow::Env* TFEnv() const { return env_; }
|
||||
|
||||
// All child threads will be reset() when destructing EagerContext.
|
||||
void AddChildThread(std::unique_ptr<Thread> thread);
|
||||
|
||||
Status FindDeviceFromName(const char* device_name, Device** device) const;
|
||||
|
||||
bool IsLocal(const Device* d) const;
|
||||
@ -454,7 +451,6 @@ class EagerContext : public core::RefCounted {
|
||||
|
||||
bool use_send_tensor_rpc_;
|
||||
const bool pin_small_ops_to_cpu_;
|
||||
std::vector<std::unique_ptr<tensorflow::Thread>> child_threads_;
|
||||
};
|
||||
|
||||
} // namespace tensorflow
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user