ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Control
AthTriton
AthTritonComps
AthTritonComps
TritonTool.h
Go to the documentation of this file.
1
// Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
2
#ifndef ATHTRITONCOMPS_TRITONTOOL_H
3
#define ATHTRITONCOMPS_TRITONTOOL_H
4
5
// Project include(s).
6
#include "
AthOnnxInterfaces/IAthInferenceTool.h
"
7
#include "
AthenaBaseComps/AthAlgTool.h
"
8
9
// System include(s).
10
#include <memory>
11
12
namespace
AthInfer
{
13
14
class
TritonTool
:
public
extends<AthAlgTool, IAthInferenceTool> {
15
16
public
:
18
TritonTool
(
const
std::string&
type
,
const
std::string& name,
19
const
IInterface* parent);
21
virtual
~TritonTool
();
22
25
27
virtual
StatusCode
initialize
()
override
;
28
30
33
35
virtual
StatusCode
inference
(
InputDataMap
& inputData,
36
OutputDataMap
& outputData)
const
override
final
;
37
39
virtual
void
print
()
const override
;
40
42
43
private
:
46
47
StringProperty
m_modelName
{
this
,
"ModelName"
,
""
,
"Model name"
};
48
IntegerProperty
m_port
{
this
,
"Port"
, 8001,
"Port ID for Triton server"
};
49
StringProperty
m_modelVersion
{
this
,
"ModelVersion"
,
""
,
50
"Model version, empty for latest"
};
51
FloatProperty
m_clientTimeout
{
52
this
,
"ClientTimeout"
, 0,
53
"Client timeout in milliseconds, 0 for no timeout"
};
54
StringProperty
m_url
{
this
,
"URL"
,
""
,
"Triton URL"
};
55
BooleanProperty
m_useSSL
{
this
,
"UseSSL"
,
false
,
56
"Use SSL for Triton server connection"
};
57
IntegerProperty
m_maxRetries
{
58
this
,
"MaxRetries"
, 10,
59
"Number of times to retry a failed Triton inference request"
};
60
IntegerProperty
m_retryDelayMs
{
61
this
,
"RetryDelayMs"
, 20,
62
"Delay in milliseconds between Triton inference retry attempts"
};
63
65
67
struct
Impl;
69
std::unique_ptr<Impl>
m_impl
;
70
71
};
// class TritonTool
72
73
}
// namespace AthInfer
74
75
#endif
// ATHTRITONCOMPS_TRITONTOOL_H
AthAlgTool.h
IAthInferenceTool.h
AthInfer::TritonTool::inference
virtual StatusCode inference(InputDataMap &inputData, OutputDataMap &outputData) const override final
Run inference with multiple inputs and multiple outputs.
Definition
TritonTool.cxx:291
AthInfer::TritonTool::m_modelVersion
StringProperty m_modelVersion
Definition
TritonTool.h:49
AthInfer::TritonTool::initialize
virtual StatusCode initialize() override
Initialize the tool.
Definition
TritonTool.cxx:245
AthInfer::TritonTool::print
virtual void print() const override
Print the tool's properties and configuration.
Definition
TritonTool.cxx:354
AthInfer::TritonTool::m_clientTimeout
FloatProperty m_clientTimeout
Definition
TritonTool.h:51
AthInfer::TritonTool::~TritonTool
virtual ~TritonTool()
Destructor.
AthInfer::TritonTool::m_maxRetries
IntegerProperty m_maxRetries
Definition
TritonTool.h:57
AthInfer::TritonTool::m_modelName
StringProperty m_modelName
Definition
TritonTool.h:47
AthInfer::TritonTool::m_retryDelayMs
IntegerProperty m_retryDelayMs
Definition
TritonTool.h:60
AthInfer::TritonTool::m_url
StringProperty m_url
Definition
TritonTool.h:54
AthInfer::TritonTool::TritonTool
TritonTool(const std::string &type, const std::string &name, const IInterface *parent)
Constructor.
Definition
TritonTool.cxx:239
AthInfer::TritonTool::m_port
IntegerProperty m_port
Definition
TritonTool.h:48
AthInfer::TritonTool::m_useSSL
BooleanProperty m_useSSL
Definition
TritonTool.h:55
AthInfer::TritonTool::m_impl
std::unique_ptr< Impl > m_impl
Pointer to the implementation details.
Definition
TritonTool.h:69
AthInfer
Definition
ExampleAsyncMLInferenceWithTriton.cxx:17
AthInfer::OutputDataMap
std::map< std::string, InferenceData > OutputDataMap
Definition
IAthInferenceTool.h:18
AthInfer::InputDataMap
std::map< std::string, InferenceData > InputDataMap
Definition
IAthInferenceTool.h:17
type
Generated on
for ATLAS Offline Software by
1.17.0