#include <BaseMVAValueMapProducer.h>
Public Member Functions | |
BaseMVACache (const std::string &model_path, const std::string &backend) | |
const cms::Ort::ONNXRuntime & | getONNXSession () const |
tensorflow::Session * | getTFSession () const |
~BaseMVACache () | |
Private Attributes | |
std::shared_ptr< tensorflow::GraphDef > | graph_ |
std::unique_ptr< cms::Ort::ONNXRuntime > | ort_ |
tensorflow::Session * | tf_session_ = nullptr |
Definition at line 56 of file BaseMVAValueMapProducer.h.
|
inline |
Definition at line 58 of file BaseMVAValueMapProducer.h.
References jetsAK4_CHS_cff::backend, tensorflow::createSession(), graph_, tensorflow::loadGraphDef(), HLT_2022v12_cff::model_path, ort_, and tf_session_.
|
inline |
Definition at line 66 of file BaseMVAValueMapProducer.h.
References tensorflow::closeSession(), and tf_session_.
|
inline |
Definition at line 69 of file BaseMVAValueMapProducer.h.
References ort_.
|
inline |
|
private |
Definition at line 72 of file BaseMVAValueMapProducer.h.
Referenced by BaseMVACache().
|
private |
Definition at line 74 of file BaseMVAValueMapProducer.h.
Referenced by BaseMVACache(), and getONNXSession().
|
private |
Definition at line 73 of file BaseMVAValueMapProducer.h.
Referenced by BaseMVACache(), getTFSession(), and ~BaseMVACache().