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

Method CSession

tensorflow/c/c_test_util.cc:453–458  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

451}
452
453CSession::CSession(TF_Graph* graph, TF_Status* s, bool use_XLA) {
454 TF_SessionOptions* opts = TF_NewSessionOptions();
455 TF_EnableXLACompilation(opts, use_XLA);
456 session_ = TF_NewSession(graph, opts, s);
457 TF_DeleteSessionOptions(opts);
458}
459
460CSession::CSession(TF_Session* session) : session_(session) {}
461

Callers

nothing calls this directly

Calls 4

TF_NewSessionOptionsFunction · 0.85
TF_EnableXLACompilationFunction · 0.85
TF_NewSessionFunction · 0.85
TF_DeleteSessionOptionsFunction · 0.85

Tested by

no test coverage detected