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

Method ClearError

tensorflow/core/common_runtime/eager/eager_executor.cc:150–160  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

148}
149
150void EagerExecutor::ClearError() {
151 tensorflow::mutex_lock l(node_queue_mutex_);
152 // TODO(iga): Check state_ and return an error if it is not kActive.
153 if (status_.ok()) return;
154 // If an error was set, node_done_notifications_ and node_queue_ should have
155 // been cleared, and no new entries should have been added since.
156 DCHECK(node_done_notifications_.empty());
157 DCHECK(node_queue_.empty());
158 status_ = tensorflow::Status::OK();
159 nodes_pending_.notify_all();
160}
161
162tensorflow::Status EagerExecutor::status() const {
163 tf_shared_lock l(node_queue_mutex_);

Callers 4

TFE_ExecutorClearErrorFunction · 0.80

Calls 3

notify_allMethod · 0.80
okMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected