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

Method ExtendSession

tensorflow/core/distributed_runtime/master.cc:497–513  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

495}
496
497void Master::ExtendSession(const ExtendSessionRequest* req,
498 ExtendSessionResponse* resp, MyClosure done) {
499 auto session = FindMasterSession(req->session_handle());
500 if (session == nullptr) {
501 done(errors::Aborted("Session ", req->session_handle(), " is not found."));
502 return;
503 }
504
505 SchedClosure([session, req, resp, done]() {
506 Status status = ValidateExternalGraphDefSyntax(req->graph_def());
507 if (status.ok()) {
508 status = session->Extend(req, resp);
509 }
510 session->Unref();
511 done(status);
512 });
513}
514
515void Master::PartialRunSetup(const PartialRunSetupRequest* req,
516 PartialRunSetupResponse* resp, MyClosure done) {

Callers 1

_extend_graphMethod · 0.45

Calls 7

SchedClosureFunction · 0.85
session_handleMethod · 0.80
graph_defMethod · 0.45
okMethod · 0.45
ExtendMethod · 0.45
UnrefMethod · 0.45

Tested by

no test coverage detected