ATLAS Offline Software
Loading...
Searching...
No Matches
NNSharingOnnxSvc.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef NN_SHARING_ONNX_SVC_H
6#define NN_SHARING_ONNX_SVC_H
7
10
11namespace FlavorTagInference
12{
13 class NNSharingOnnxSvc: public extends<asg::AsgService, INNSharingSvc>
14 {
15 public:
16 using extends::extends; // base class constructor
17 virtual std::shared_ptr<const GNN> get(
18 const std::string& nn_name,
19 const GNNOptions& opts) override;
20 private:
21 using val_t = std::shared_ptr<const GNN>;
22 std::unordered_map<NNHashing::NNKey, val_t, NNHashing::NNHasher> m_gnns;
23 std::unordered_map<std::string, val_t> m_base_gnns;
24 };
25
26}
27
28#endif
std::unordered_map< NNHashing::NNKey, val_t, NNHashing::NNHasher > m_gnns
std::unordered_map< std::string, val_t > m_base_gnns
virtual std::shared_ptr< const GNN > get(const std::string &nn_name, const GNNOptions &opts) override
std::shared_ptr< const GNN > val_t
This file contains "getter" functions used for accessing tagger inputs from the EDM.