![]() |
ATLAS Offline Software
|
Baseline tool to handle the
More...
#include <SPInferenceToolBase.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 20 of file SPInferenceToolBase.h.
| StatusCode MuonML::SPInferenceToolBase::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 114 of file SPInferenceToolBase.cxx.
|
protected |
Definition at line 87 of file SPInferenceToolBase.cxx.
| StatusCode MuonML::SPInferenceToolBase::runInference | ( | GraphRawData & | graphData | ) | const |
Definition at line 188 of file SPInferenceToolBase.cxx.
|
protected |
Definition at line 90 of file SPInferenceToolBase.cxx.
|
private |
List of features to be used for the inference.
Definition at line 44 of file SPInferenceToolBase.h.
|
private |
Definition at line 45 of file SPInferenceToolBase.h.
|
protected |
Input space points to filter
Definition at line 41 of file SPInferenceToolBase.h.
1.8.18