ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
MuonSpectrometer
MuonPhaseII
MuonLearning
MuonInferenceInterfaces
MuonInferenceInterfaces
GraphData.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3
*/
4
#ifndef MUONINFERENCEINTERACES_GRAPHNODE_H
5
#define MUONINFERENCEINTERACES_GRAPHNODE_H
6
7
#include <onnxruntime_cxx_api.h>
8
#include <vector>
9
#include <memory>
10
11
namespace
MuonML
{
12
class
NodeFeatureList
;
13
15
struct
InferenceGraph
{
17
std::vector<Ort::Value>
dataTensor
{};
20
std::vector<const char*>
nameTensor
{};
21
};
22
25
struct
GraphRawData
{
26
using
FeatureVec_t
= std::vector<float>;
27
using
NodeConnectVec_t
= std::vector<int64_t>;
28
using
EdgeCounterVec_t
= std::vector<int64_t>;
30
FeatureVec_t
featureLeaves
{};
32
EdgeCounterVec_t
srcEdges
{};
34
EdgeCounterVec_t
desEdges
{};
36
NodeConnectVec_t
spacePointsInBucket
{};
42
EdgeCounterVec_t
edgeIndexPacked
{};
44
const
NodeFeatureList
*
previousList
{};
46
std::unique_ptr<InferenceGraph>
graph
{};
47
50
std::vector<float>::iterator
currLeave
{
featureLeaves
.begin()};
52
unsigned
int
nodeIndex
{0};
53
};
54
}
55
56
#endif
MuonML::NodeFeatureList
Definition
NodeFeatureList.h:14
MuonML
Definition
BucketGraphUtils.h:19
MuonML::GraphRawData
Helper struct to ship the Graph from the space point buckets to ONNX.
Definition
GraphData.h:25
MuonML::GraphRawData::NodeConnectVec_t
std::vector< int64_t > NodeConnectVec_t
Definition
GraphData.h:27
MuonML::GraphRawData::featureLeaves
FeatureVec_t featureLeaves
Vector containing all features.
Definition
GraphData.h:30
MuonML::GraphRawData::edgeIndexPacked
EdgeCounterVec_t edgeIndexPacked
Packed edge index buffer (kept alive for ONNX tensors that reference it) This stores [srcEdges,...
Definition
GraphData.h:42
MuonML::GraphRawData::graph
std::unique_ptr< InferenceGraph > graph
Pointer to the graph to be parsed to ONNX.
Definition
GraphData.h:46
MuonML::GraphRawData::FeatureVec_t
std::vector< float > FeatureVec_t
Definition
GraphData.h:26
MuonML::GraphRawData::nodeIndex
unsigned int nodeIndex
Number of the already filled nodes.
Definition
GraphData.h:52
MuonML::GraphRawData::previousList
const NodeFeatureList * previousList
Pointer to the latest parsed NodeFeatureList.
Definition
GraphData.h:44
MuonML::GraphRawData::currLeave
std::vector< float >::iterator currLeave
The following variables are needed to fill the consistently the raw data for the Graph Building.
Definition
GraphData.h:50
MuonML::GraphRawData::EdgeCounterVec_t
std::vector< int64_t > EdgeCounterVec_t
Definition
GraphData.h:28
MuonML::GraphRawData::srcEdges
EdgeCounterVec_t srcEdges
Vector encoding the source index of the.
Definition
GraphData.h:32
MuonML::GraphRawData::desEdges
EdgeCounterVec_t desEdges
Vect.
Definition
GraphData.h:34
MuonML::GraphRawData::spacePointsInBucket
NodeConnectVec_t spacePointsInBucket
Vector keeping track of how many space points are in each parsed bucket.
Definition
GraphData.h:36
MuonML::InferenceGraph
Helper struct containing all the information needed to process.
Definition
GraphData.h:15
MuonML::InferenceGraph::nameTensor
std::vector< const char * > nameTensor
Vector of the input names.
Definition
GraphData.h:20
MuonML::InferenceGraph::dataTensor
std::vector< Ort::Value > dataTensor
Vector of the inference input tensors.
Definition
GraphData.h:17
Generated on
for ATLAS Offline Software by
1.17.0