Analysis Software
Documentation for
sPHENIX
simulation software
Home page
Related Pages
Modules
Namespaces
Classes
Files
Examples
External Links
File List
File Members
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
coresoftware
blob
master
offline
framework
phool
onnxlib.h
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:18:05
using
1.8.2 with
sPHENIX GitHub integration