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

Method AddErrorCallback

tensorflow/cc/training/queue_runner.cc:36–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34}
35
36void QueueRunner::AddErrorCallback(const std::function<void(Status)>& cb) {
37 mutex_lock l(cb_mu_);
38 callbacks_.push_back(cb);
39}
40
41void QueueRunner::ClearErrorCallbacks() {
42 mutex_lock l(cb_mu_);

Callers 1

TESTFunction · 0.80

Calls 1

push_backMethod · 0.45

Tested by 1

TESTFunction · 0.64