| 44 | } // end namespace |
| 45 | |
| 46 | TF_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 | |
| 59 | void TF_Run_wrapper_helper(TF_DeprecatedSession* session, const char* handle, |
| 60 | const TF_Buffer* run_options, PyObject* feed_dict, |
nothing calls this directly
no test coverage detected