3#ifndef ATHEXTRITON_EXAMPLEMLINFERENCEWITHTRITON_H
4#define ATHEXTRITON_EXAMPLEMLINFERENCEWITHTRITON_H
25 using AthReentrantAlgorithm::AthReentrantAlgorithm;
33 virtual StatusCode
execute(
const EventContext& ctx)
const override;
43 this,
"InputDataPixel",
"dev/MLTest/2020-03-31/t10k-images-idx3-ubyte",
44 "Name of the input pixel file to load"};
49 "No. of elements/example in a batch"};
53 this,
"InferenceTool",
"AthInfer::TritonTool",
"Triton client tool"};
Algorithm demonstrating the usage of the Triton Client API.
virtual StatusCode execute(const EventContext &ctx) const override
Function executing the algorithm for a single event.
virtual StatusCode initialize() override
Function initialising the algorithm.
Gaudi::Property< int > m_batchSize
Following properties needed to be consdered if the .onnx model is evaluated in batch mode.
std::vector< std::vector< std::vector< float > > > m_input_tensor_values_notFlat
ToolHandle< AthInfer::IAthInferenceTool > m_tritonTool
Tool handle for the Triton client.
Gaudi::Property< std::string > m_pixelFileName
Name of the model file to load.
An algorithm that can be simultaneously executed in multiple threads.