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

Function TF_NewSessionRef

tensorflow/python/client/tf_session_helper.cc:46–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44} // end namespace
45
46TF_Session* TF_NewSessionRef(TF_Graph* graph, const TF_SessionOptions* opts,
47 TF_Status* status) {
48 TF_Session* tf_session = TF_NewSession(graph, opts, status);
49 if (tf_session == nullptr) {
50 return nullptr;
51 }
52
53 Session* session = reinterpret_cast<Session*>(tf_session->session);
54 SessionRef* session_ref = new SessionRef(session);
55 tf_session->session = session_ref;
56 return tf_session;
57}
58
59void TF_Run_wrapper_helper(TF_DeprecatedSession* session, const char* handle,
60 const TF_Buffer* run_options, PyObject* feed_dict,

Callers

nothing calls this directly

Calls 1

TF_NewSessionFunction · 0.85

Tested by

no test coverage detected