1 #ifndef NuSonic_Triton_TritonClient 2 #define NuSonic_Triton_TritonClient 14 #include "grpc_client.h" 16 namespace nic = triton::client;
41 bool setBatchSize(
unsigned bsize);
55 bool getResults(std::shared_ptr<nic::InferResult> results);
59 void finish(
bool success);
62 ServerSideStats summarizeServerStats(
const inference::ModelStatistics& start_status,
63 const inference::ModelStatistics& end_status)
const;
65 inference::ModelStatistics getServerSideStatus()
const;
81 std::unique_ptr<nic::InferenceServerGrpcClient>
client_;
nic::InferOptions options_
uint64_t compute_output_time_ns_
std::unordered_map< std::string, TritonOutputData > TritonOutputMap
const TritonOutputMap & output() const
uint64_t compute_infer_time_ns_
uint64_t compute_input_time_ns_
std::vector< const nic::InferRequestedOutput * > outputsTriton_
std::unique_ptr< nic::InferenceServerGrpcClient > client_
uint64_t inference_count_
unsigned batchSize() const
std::vector< nic::InferInput * > inputsTriton_
uint64_t execution_count_
std::unordered_map< std::string, TritonInputData > TritonInputMap