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

Method SetWatcher

tensorflow/core/framework/op.cc:142–150  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

140}
141
142Status OpRegistry::SetWatcher(const Watcher& watcher) {
143 mutex_lock lock(mu_);
144 if (watcher_ && watcher) {
145 return errors::AlreadyExists(
146 "Cannot over-write a valid watcher with another.");
147 }
148 watcher_ = watcher;
149 return Status::OK();
150}
151
152void OpRegistry::Export(bool include_internal, OpList* ops) const {
153 mutex_lock lock(mu_);

Callers 2

LoadLibraryFunction · 0.80
TESTFunction · 0.80

Calls

no outgoing calls

Tested by 1

TESTFunction · 0.64