ATLAS Offline Software
Loading...
Searching...
No Matches
SaltModelOutput.h
Go to the documentation of this file.
1/*
2Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3
4This class is used to store the configuration for a ONNX output node.
5*/
6
7#ifndef FLAVORTAGDISCRIMINANTS_SALTMODELOUTPUT_H
8#define FLAVORTAGDISCRIMINANTS_SALTMODELOUTPUT_H
9
10#include <onnxruntime_cxx_api.h>
11#include "nlohmann/json.hpp"
12#include <string>
13
14namespace FlavorTagInference {
15
17
18 public:
20
21 /* constructor for SaltModelVersion::V1 and higher */
22 SaltModelOutput(const std::string& name,
23 ONNXTensorElementDataType type,
24 int rank);
25
26 /* constructor for SaltModelVersion::V0 */
27 SaltModelOutput(const std::string& name,
28 ONNXTensorElementDataType type,
29 const std::string& name_in_model);
30
31 const std::string name;
32 const std::string name_in_model;
34
35 private:
36 OutputType getOutputType(ONNXTensorElementDataType type, int rank) const;
37 const std::string getName(const std::string& name, const std::string& model_name) const;
38
39}; // class SaltModelOutput
40
41} // namespace FlavorTagInference
42
43#endif // FLAVORTAGDISCRIMINANTS_SALTMODELOUTPUT_H
OutputType getOutputType(ONNXTensorElementDataType type, int rank) const
const std::string getName(const std::string &name, const std::string &model_name) const
SaltModelOutput(const std::string &name, ONNXTensorElementDataType type, int rank)
This file contains "getter" functions used for accessing tagger inputs from the EDM.