| 451 | } |
| 452 | |
| 453 | CSession::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 | |
| 460 | CSession::CSession(TF_Session* session) : session_(session) {} |
| 461 |
nothing calls this directly
no test coverage detected