 |
ATLAS Offline Software
|
Go to the documentation of this file.
7 #ifndef DITAURECTOOLS_DITAUONNXDISCRIMINANTTOOL_H
8 #define DITAURECTOOLS_DITAUONNXDISCRIMINANTTOOL_H
11 #include <onnxruntime_cxx_api.h>
43 Gaudi::Property<std::string>
m_onnxModelPath{
this,
"onnxModelPath",
"TrigTauRec/00-11-02/dev/boosted_ditau_omni_model.onnx"};
48 const std::vector<std::string>
m_input_node_names = {
"input_features",
"input_points",
"input_mask",
"input_jet",
"input_time"};
69 Ort::Value
create_tensor(std::vector<float> &
data,
const std::vector<int64_t> &shape)
const;
71 float nan_to_num(
float value,
float nan_replacement,
float posinf_replacement,
float neginf_replacement)
const;
72 std::vector<float>
flatten(
const std::vector<std::vector<float>> &vec_2d)
const;
73 std::vector<float>
extract_points(
const std::vector<std::vector<float>> &track_features)
const;
74 std::vector<float>
create_mask(
const std::vector<std::vector<float>> &track_features)
const;
99 #endif // DITAURECTOOLS_DITAUONNXDISCRIMINANTTOOL_H
char data[hepevt_bytes_allocation_ATLAS]
Property holding a SG store/key/clid from which a ReadHandle is made.
::StatusCode StatusCode
StatusCode definition for legacy code.
Property holding a SG store/key/clid/attr name from which a ReadDecorHandle is made.