#include <OrtInterface.h>
|
| OrtModel ()=default |
|
| OrtModel (std::unordered_map< std::string, std::string > optionsMap) |
|
void | init (std::unordered_map< std::string, std::string > optionsMap) |
|
virtual | ~OrtModel ()=default |
|
void | initOptions (std::unordered_map< std::string, std::string > optionsMap) |
|
void | initEnvironment () |
|
void | initSession () |
|
void | memoryOnDevice (int32_t=0) |
|
bool | isInitialized () |
|
void | resetSession () |
|
std::vector< std::vector< int64_t > > | getNumInputNodes () const |
|
std::vector< std::vector< int64_t > > | getNumOutputNodes () const |
|
std::vector< std::string > | getInputNames () const |
|
std::vector< std::string > | getOutputNames () const |
|
Ort::SessionOptions * | getSessionOptions () |
|
Ort::MemoryInfo * | getMemoryInfo () |
|
Ort::Env * | getEnv () |
|
int32_t | getIntraOpNumThreads () const |
|
int32_t | getInterOpNumThreads () const |
|
void | setDeviceId (int32_t id) |
|
void | setIO () |
|
void | setActiveThreads (int threads) |
|
void | setIntraOpNumThreads (int threads) |
|
void | setInterOpNumThreads (int threads) |
|
void | setEnv (Ort::Env *) |
|
template<class I , class O > |
std::vector< O > | v2v (std::vector< I > &, bool=true) |
|
template<class I , class O > |
std::vector< O > | inference (std::vector< I > &) |
|
template<class I , class O > |
std::vector< O > | inference (std::vector< std::vector< I > > &) |
|
template<class I , class O > |
void | inference (I *, int64_t, O *) |
|
template<class I , class O > |
void | inference (I **, int64_t, O *) |
|
void | release (bool=false) |
|
Definition at line 43 of file OrtInterface.h.
◆ OrtModel() [1/2]
o2::ml::OrtModel::OrtModel |
( |
| ) |
|
|
default |
◆ OrtModel() [2/2]
o2::ml::OrtModel::OrtModel |
( |
std::unordered_map< std::string, std::string > |
optionsMap | ) |
|
|
inline |
◆ ~OrtModel()
virtual o2::ml::OrtModel::~OrtModel |
( |
| ) |
|
|
virtualdefault |
◆ getEnv()
Ort::Env * o2::ml::OrtModel::getEnv |
( |
| ) |
|
◆ getInputNames()
std::vector< std::string > o2::ml::OrtModel::getInputNames |
( |
| ) |
const |
|
inline |
◆ getInterOpNumThreads()
int32_t o2::ml::OrtModel::getInterOpNumThreads |
( |
| ) |
const |
|
inline |
◆ getIntraOpNumThreads()
int32_t o2::ml::OrtModel::getIntraOpNumThreads |
( |
| ) |
const |
|
inline |
◆ getMemoryInfo()
Ort::MemoryInfo * o2::ml::OrtModel::getMemoryInfo |
( |
| ) |
|
◆ getNumInputNodes()
std::vector< std::vector< int64_t > > o2::ml::OrtModel::getNumInputNodes |
( |
| ) |
const |
|
inline |
◆ getNumOutputNodes()
std::vector< std::vector< int64_t > > o2::ml::OrtModel::getNumOutputNodes |
( |
| ) |
const |
|
inline |
◆ getOutputNames()
std::vector< std::string > o2::ml::OrtModel::getOutputNames |
( |
| ) |
const |
|
inline |
◆ getSessionOptions()
Ort::SessionOptions * o2::ml::OrtModel::getSessionOptions |
( |
| ) |
|
◆ inference() [1/4]
template<class I , class O >
void o2::ml::OrtModel::inference |
( |
I ** |
input, |
|
|
int64_t |
input_size, |
|
|
O * |
output |
|
) |
| |
◆ inference() [2/4]
template<class I , class O >
void o2::ml::OrtModel::inference |
( |
I * |
input, |
|
|
int64_t |
input_size, |
|
|
O * |
output |
|
) |
| |
◆ inference() [3/4]
template<class I , class O >
std::vector< O > o2::ml::OrtModel::inference |
( |
std::vector< I > & |
input | ) |
|
◆ inference() [4/4]
template<class I , class O >
std::vector< O > o2::ml::OrtModel::inference |
( |
std::vector< std::vector< I > > & |
inputs | ) |
|
◆ init()
void o2::ml::OrtModel::init |
( |
std::unordered_map< std::string, std::string > |
optionsMap | ) |
|
|
inline |
◆ initEnvironment()
void o2::ml::OrtModel::initEnvironment |
( |
| ) |
|
◆ initOptions()
void o2::ml::OrtModel::initOptions |
( |
std::unordered_map< std::string, std::string > |
optionsMap | ) |
|
◆ initSession()
void o2::ml::OrtModel::initSession |
( |
| ) |
|
◆ isInitialized()
bool o2::ml::OrtModel::isInitialized |
( |
| ) |
|
|
inline |
◆ memoryOnDevice()
void o2::ml::OrtModel::memoryOnDevice |
( |
int32_t |
deviceIndex = 0 | ) |
|
For now prefer to use single allocation, enabled by O2/GPU/GPUTracking/Base/cuda/GPUReconstructionCUDA.cu -> SetONNXGPUStream -> rocm_options.arena_extend_strategy = 0;
Definition at line 142 of file OrtInterface.cxx.
◆ release()
void o2::ml::OrtModel::release |
( |
bool |
profilingEnabled = false | ) |
|
◆ resetSession()
void o2::ml::OrtModel::resetSession |
( |
| ) |
|
◆ setActiveThreads()
void o2::ml::OrtModel::setActiveThreads |
( |
int |
threads | ) |
|
|
inline |
◆ setDeviceId()
void o2::ml::OrtModel::setDeviceId |
( |
int32_t |
id | ) |
|
|
inline |
◆ setEnv()
void o2::ml::OrtModel::setEnv |
( |
Ort::Env * |
env | ) |
|
◆ setInterOpNumThreads()
void o2::ml::OrtModel::setInterOpNumThreads |
( |
int |
threads | ) |
|
|
inline |
◆ setIntraOpNumThreads()
void o2::ml::OrtModel::setIntraOpNumThreads |
( |
int |
threads | ) |
|
|
inline |
◆ setIO()
void o2::ml::OrtModel::setIO |
( |
| ) |
|
◆ v2v()
template<class I , class O >
std::vector< O > o2::ml::OrtModel::v2v |
( |
std::vector< I > & |
input, |
|
|
bool |
clearInput = true |
|
) |
| |
The documentation for this class was generated from the following files: