 |
ATLAS Offline Software
|
Go to the documentation of this file.
6 #include "grpc_client.h"
7 #include "grpc_service.pb.h"
21 #define FAIL_IF_ERR(X, MSG) \
23 tc::Error err = (X); \
26 return StatusCode::FAILURE; \
30 class TritonTool:
public extends<AthAlgTool, IAthInferenceTool>
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",
"",
"Model version, empty for latest"};
50 FloatProperty
m_clientTimeout{
this,
"ClientTimeout", 0,
"Client timeout in milliseconds, 0 for no timeout"};
51 StringProperty
m_url{
this,
"URL",
"",
"Triton URL"};
52 BooleanProperty
m_useSSL{
this,
"UseSSL",
false,
"Use SSL for Triton server connection"};
55 tc::InferenceServerGrpcClient*
getClient()
const;
60 const std::vector<int64_t>& shape,
61 const std::vector<T>&
data,
62 std::vector<std::shared_ptr<tc::InferInput>>&
inputs)
const;
66 const std::shared_ptr<tc::InferResult>&
result,
67 std::vector<T>& outputVec)
const;
char data[hepevt_bytes_allocation_ATLAS]
bool const RAWDATA *ch2 const
::StatusCode StatusCode
StatusCode definition for legacy code.
std::map< std::string, InferenceData > OutputDataMap
std::map< std::string, InferenceData > InputDataMap