#include <BaseMVAValueMapProducer.h>
Public Member Functions | |
BaseMVACache (const std::string &model_path, const std::string &backend, const bool disableONNXGraphOpt) | |
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 HLT_2024v12_cff::backend, tensorflow::createSession(), cms::Ort::ONNXRuntime::defaultSessionOptions(), graph_, tensorflow::loadGraphDef(), HLT_2024v12_cff::model_path, ort_, and tf_session_.
|
inline |
Definition at line 73 of file BaseMVAValueMapProducer.h.
References tensorflow::closeSession(), and tf_session_.
|
inline |
Definition at line 76 of file BaseMVAValueMapProducer.h.
References ort_.
|
inline |
|
private |
Definition at line 79 of file BaseMVAValueMapProducer.h.
Referenced by BaseMVACache().
|
private |
Definition at line 81 of file BaseMVAValueMapProducer.h.
Referenced by BaseMVACache(), and getONNXSession().
|
private |
Definition at line 80 of file BaseMVAValueMapProducer.h.
Referenced by BaseMVACache(), getTFSession(), and ~BaseMVACache().