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

Method SessionRef

tensorflow/python/client/session_ref.cc:381–388  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

379}
380
381SessionRef::SessionRef(Session* session) : session_(session) {
382 if (getenv("TF_REPLAY_LOG_FILE") != nullptr) {
383 logger_ = global_session_logger();
384 logger_->RecordNewSession(this->session_.get()).IgnoreError();
385 } else {
386 logger_ = nullptr;
387 }
388}
389
390SessionRef::~SessionRef() = default;
391

Callers

nothing calls this directly

Calls 4

global_session_loggerFunction · 0.85
RecordNewSessionMethod · 0.80
IgnoreErrorMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected