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

Method Close

tensorflow/python/client/session_ref.cc:487–501  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

485}
486
487Status SessionRef::Close(const RunOptions& run_options) {
488 TF_RETURN_IF_ERROR(CheckNotClosed());
489 mutex_lock l(run_lock_);
490 Status status;
491 if (logger_) {
492 status = logger_->RecordClose(session_.get(), run_options);
493 } else {
494 status = session_->Close(run_options);
495 }
496 session_.reset();
497 while (run_count_ > 0) {
498 run_finished_.wait(l);
499 }
500 return status;
501}
502
503Status SessionRef::Close() {
504 TF_RETURN_IF_ERROR(CheckNotClosed());

Callers 2

~SessionLoggerMethod · 0.45
closeMethod · 0.45

Calls 4

RecordCloseMethod · 0.80
getMethod · 0.45
resetMethod · 0.45
waitMethod · 0.45

Tested by

no test coverage detected