ATLAS Offline Software
Loading...
Searching...
No Matches
NNSharingTritonSvc.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_TRITON_SVC_H
6#define NN_SHARING_TRITON_SVC_H
7
10
11
12namespace FlavorTagInference
13{
14 class NNSharingTritonSvc: public extends<asg::AsgService, INNSharingSvc>
15 {
16 public:
17 using extends::extends; // base class constructor
18 virtual StatusCode initialize() override;
19 virtual std::shared_ptr<const GNN> get(
20 const std::string& nn_name,
21 const GNNOptions& opts) override;
22 private:
23 using val_t = std::shared_ptr<const GNN>;
24 std::unordered_map<NNHashing::NNKey, val_t, NNHashing::NNHasher> m_gnns;
25 std::unordered_map<std::string, val_t> m_base_gnns;
26 Gaudi::Property<float> m_tritonTimeout {this, "TritonTimeout", 0.f
27 , "Timeout value for Triton client"};
28 Gaudi::Property<int> m_tritonPort {this, "TritonPort", 443
29 , "Triton server port"};
30 Gaudi::Property<std::string> m_tritonUrl {this, "TritonUrl", ""
31 , "Triton server URL"};
32 Gaudi::Property<bool> m_tritonUseSsl {this, "TritonUseSSL", true
33 , "Connect to the Triton server over SSL"};
34 Gaudi::Property<std::map<std::string, std::string>> m_tritonPathToName {this, "TritonPathsMap", {}
35 , "Mapping of ONNX file paths to Triton model names"};
36 Gaudi::Property<std::string> m_tritonBearer {this, "TritonBearer", ""
37 , "Bearer token for Triton server authentication"};
38
39 };
40
41}
42
43#endif
virtual StatusCode initialize() override
Gaudi::Property< std::string > m_tritonBearer
virtual std::shared_ptr< const GNN > get(const std::string &nn_name, const GNNOptions &opts) override
std::unordered_map< std::string, val_t > m_base_gnns
Gaudi::Property< std::map< std::string, std::string > > m_tritonPathToName
Gaudi::Property< std::string > m_tritonUrl
std::unordered_map< NNHashing::NNKey, val_t, NNHashing::NNHasher > m_gnns
This file contains "getter" functions used for accessing tagger inputs from the EDM.