Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
onnxlib.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file onnxlib.h
1 #ifndef ONNXLIB_H
2 #define ONNXLIB_H
3 
4 #pragma GCC diagnostic push
5 #pragma GCC diagnostic ignored "-Wshadow"
6 #pragma GCC diagnostic ignored "-Wpedantic"
7 #include <onnxruntime_cxx_api.h>
8 #pragma GCC diagnostic pop
9 
10 // This is a stub for some ONNX code refactoring
11 
12 Ort::Session *onnxSession(std::string &modelfile);
13 
14 std::vector<float> onnxInference(Ort::Session *session, std::vector<float> &input, int N, int Nsamp, int Nreturn);
15 
16 #endif