![]() |
ATLAS Offline Software
|
Baseline tool to handle the
More...
#include <GraphInferenceToolBase.h>
Public Member Functions | |
StatusCode | buildGraph (const EventContext &ctx, GraphRawData &graphData) const |
Fill up the GraphRawData and construct the graph for the ML inference with ONNX. More... | |
StatusCode | runInference (GraphRawData &graphData) const |
Protected Member Functions | |
StatusCode | setupModel () |
Ort::Session & | model () const |
Protected Attributes | |
SG::ReadHandleKey< MuonR4::SpacePointContainer > | m_readKey {this, "ReadSpacePoints", "MuonSpacePoints"} |
Input space points to filter More... | |
Private Attributes | |
NodeFeatureList | m_graphFeatures {} |
List of features to be used for the inference. More... | |
ToolHandle< AthOnnx::IOnnxRuntimeSessionTool > | m_onnxSessionTool {this, "ModelSession", "" } |
Baseline tool to handle the
Definition at line 22 of file GraphInferenceToolBase.h.
StatusCode MuonML::GraphInferenceToolBase::buildGraph | ( | const EventContext & | ctx, |
GraphRawData & | graphData | ||
) | const |
Fill up the GraphRawData and construct the graph for the ML inference with ONNX.
If the graph has been built by another inference tool and would be the same than this one the rebuild is skipped
ctx | EventContext to access the space ponit container from StoreGate |
graphData | Rerference to the data object to be filled. |
Check whether the graph needs a rebuild
Don't launch the rebuild of the graph
Fill the graph edge features and all their respective connections
Definition at line 115 of file GraphInferenceToolBase.cxx.
|
protected |
Definition at line 88 of file GraphInferenceToolBase.cxx.
StatusCode MuonML::GraphInferenceToolBase::runInference | ( | GraphRawData & | graphData | ) | const |
Definition at line 189 of file GraphInferenceToolBase.cxx.
|
protected |
Definition at line 91 of file GraphInferenceToolBase.cxx.
|
private |
List of features to be used for the inference.
Definition at line 46 of file GraphInferenceToolBase.h.
|
private |
Definition at line 47 of file GraphInferenceToolBase.h.
|
protected |
Input space points to filter
Definition at line 43 of file GraphInferenceToolBase.h.