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

Method ReleaseCallable

tensorflow/core/distributed_runtime/master_session.cc:2296–2312  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2294}
2295
2296Status MasterSession::ReleaseCallable(const ReleaseCallableRequest& req,
2297 ReleaseCallableResponse* resp) {
2298 UpdateLastAccessTime();
2299 ReffedClientGraph* to_unref = nullptr;
2300 {
2301 mutex_lock l(mu_);
2302 auto iter = callables_.find(req.handle());
2303 if (iter != callables_.end()) {
2304 to_unref = iter->second;
2305 callables_.erase(iter);
2306 }
2307 }
2308 if (to_unref != nullptr) {
2309 to_unref->Unref();
2310 }
2311 return Status::OK();
2312}
2313
2314Status MasterSession::Close() {
2315 {

Callers

nothing calls this directly

Calls 5

findMethod · 0.45
handleMethod · 0.45
endMethod · 0.45
eraseMethod · 0.45
UnrefMethod · 0.45

Tested by

no test coverage detected