ATLAS Offline Software
Loading...
Searching...
No Matches
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
11namespace MuonML{
12 class NodeFeatureList;
13
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>;
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
Helper struct to ship the Graph from the space point buckets to ONNX.
Definition GraphData.h:25
std::vector< int64_t > NodeConnectVec_t
Definition GraphData.h:27
FeatureVec_t featureLeaves
Vector containing all features.
Definition GraphData.h:30
EdgeCounterVec_t edgeIndexPacked
Packed edge index buffer (kept alive for ONNX tensors that reference it) This stores [srcEdges,...
Definition GraphData.h:42
std::unique_ptr< InferenceGraph > graph
Pointer to the graph to be parsed to ONNX.
Definition GraphData.h:46
std::vector< float > FeatureVec_t
Definition GraphData.h:26
unsigned int nodeIndex
Number of the already filled nodes.
Definition GraphData.h:52
const NodeFeatureList * previousList
Pointer to the latest parsed NodeFeatureList.
Definition GraphData.h:44
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
std::vector< int64_t > EdgeCounterVec_t
Definition GraphData.h:28
EdgeCounterVec_t srcEdges
Vector encoding the source index of the.
Definition GraphData.h:32
EdgeCounterVec_t desEdges
Vect.
Definition GraphData.h:34
NodeConnectVec_t spacePointsInBucket
Vector keeping track of how many space points are in each parsed bucket.
Definition GraphData.h:36
Helper struct containing all the information needed to process.
Definition GraphData.h:15
std::vector< const char * > nameTensor
Vector of the input names.
Definition GraphData.h:20
std::vector< Ort::Value > dataTensor
Vector of the inference input tensors.
Definition GraphData.h:17