#include <TritonClient.h>
Classes | |
struct | ServerSideStats |
Public Member Functions | |
unsigned | batchSize () const |
void | reset () override |
bool | setBatchSize (unsigned bsize) |
TritonClient (const edm::ParameterSet ¶ms) | |
bool | verbose () const |
Public Member Functions inherited from SonicClient< TritonInputMap, TritonOutputMap > | |
SonicClient (const edm::ParameterSet ¶ms) | |
Public Member Functions inherited from SonicClientBase | |
const std::string & | clientName () const |
const std::string & | debugName () const |
virtual void | dispatch () |
virtual void | dispatch (edm::WaitingTaskWithArenaHolder holder) |
SonicMode | mode () const |
void | setDebugName (const std::string &debugName) |
SonicClientBase (const edm::ParameterSet ¶ms) | |
virtual | ~SonicClientBase ()=default |
Public Member Functions inherited from SonicClientTypes< TritonInputMap, TritonOutputMap > | |
Input & | input () |
const Output & | output () const |
virtual | ~SonicClientTypes ()=default |
Static Public Member Functions | |
static void | fillPSetDescription (edm::ParameterSetDescription &iDesc) |
Static Public Member Functions inherited from SonicClientBase | |
static void | fillBasePSetDescription (edm::ParameterSetDescription &desc, bool allowRetry=true) |
Protected Member Functions | |
void | evaluate () override |
bool | getResults (std::shared_ptr< nvidia::inferenceserver::client::InferResult > results) |
inference::ModelStatistics | getServerSideStatus () const |
void | reportServerSideStats (const ServerSideStats &stats) const |
ServerSideStats | summarizeServerStats (const inference::ModelStatistics &start_status, const inference::ModelStatistics &end_status) const |
Protected Member Functions inherited from SonicClientBase | |
void | finish (bool success, std::exception_ptr eptr=std::exception_ptr{}) |
void | start () |
void | start (edm::WaitingTaskWithArenaHolder holder) |
Protected Attributes | |
unsigned | batchSize_ |
std::unique_ptr< nvidia::inferenceserver::client::InferenceServerGrpcClient > | client_ |
std::vector< nvidia::inferenceserver::client::InferInput * > | inputsTriton_ |
unsigned | maxBatchSize_ |
bool | noBatch_ |
nvidia::inferenceserver::client::InferOptions | options_ |
std::vector< const nvidia::inferenceserver::client::InferRequestedOutput * > | outputsTriton_ |
bool | verbose_ |
Protected Attributes inherited from SonicClientBase | |
unsigned | allowedTries_ |
std::string | clientName_ |
std::string | debugName_ |
std::unique_ptr< SonicDispatcher > | dispatcher_ |
std::string | fullDebugName_ |
std::optional< edm::WaitingTaskWithArenaHolder > | holder_ |
SonicMode | mode_ |
std::chrono::time_point< std::chrono::high_resolution_clock > | t0_ |
unsigned | tries_ |
Protected Attributes inherited from SonicClientTypes< TritonInputMap, TritonOutputMap > | |
Input | input_ |
Output | output_ |
Additional Inherited Members | |
Public Types inherited from SonicClientTypes< TritonInputMap, TritonOutputMap > | |
typedef TritonInputMap | Input |
typedef TritonOutputMap | Output |
Definition at line 18 of file TritonClient.h.
TritonClient::TritonClient | ( | const edm::ParameterSet & | params | ) |
Definition at line 23 of file TritonClient.cc.
References client_, SonicClientBase::clientName_, SonicClientBase::fullDebugName_, SonicClientTypes< TritonInputMap, TritonOutputMap >::input_, inputsTriton_, SiStripPI::max, maxBatchSize_, mps_check::msg, noBatch_, heppy_report::oname, options_, SonicClientTypes< TritonInputMap, TritonOutputMap >::output_, outputsTriton_, CalibrationSummaryClient_cfi::params, triton_utils::printColl(), setBatchSize(), AlCaHLTBitMon_QueryRunRegistry::string, summarizeEdmComparisonLogfiles::success, triton_utils::throwIfError(), relmon_authenticated_wget::url, and verbose_.
|
inline |
|
overrideprotectedvirtual |
Implements SonicClientBase.
Definition at line 189 of file TritonClient.cc.
References Async, batchSize_, client_, SonicClientBase::debugName_, SonicClientBase::finish(), SonicClientBase::fullDebugName_, getResults(), getServerSideStatus(), inputsTriton_, SonicClientBase::mode_, submitPVValidationJobs::now, options_, outputsTriton_, reportServerSideStats(), bookConverter::results, dqmMemoryStats::stats, mps_update::status, summarizeServerStats(), RandomServiceHelper::t1, RandomServiceHelper::t2, verbose(), and triton_utils::warnIfError().
|
static |
Definition at line 338 of file TritonClient.cc.
References edm::ParameterSetDescription::add(), edm::ParameterSetDescription::addUntracked(), SonicClientBase::fillBasePSetDescription(), and AlCaHLTBitMon_QueryRunRegistry::string.
|
protected |
Definition at line 170 of file TritonClient.cc.
References heppy_report::oname, SonicClientTypes< TritonInputMap, TritonOutputMap >::output(), SonicClientTypes< TritonInputMap, TritonOutputMap >::output_, bookConverter::results, mps_update::status, and triton_utils::warnIfError().
Referenced by evaluate().
|
protected |
Definition at line 327 of file TritonClient.cc.
References client_, options_, verbose_, and triton_utils::warnIfError().
Referenced by evaluate().
|
protected |
Definition at line 269 of file TritonClient.cc.
References submitPVResolutionJobs::count, SonicClientBase::debugName_, SonicClientBase::fullDebugName_, mps_check::msg, and dqmMemoryStats::stats.
Referenced by evaluate().
|
overridevirtual |
Reimplemented from SonicClientBase.
Definition at line 161 of file TritonClient.cc.
References SonicClientTypes< TritonInputMap, TritonOutputMap >::input_, and SonicClientTypes< TritonInputMap, TritonOutputMap >::output_.
bool TritonClient::setBatchSize | ( | unsigned | bsize | ) |
Definition at line 143 of file TritonClient.cc.
References batchSize_, SonicClientBase::fullDebugName_, SonicClientTypes< TritonInputMap, TritonOutputMap >::input_, maxBatchSize_, and SonicClientTypes< TritonInputMap, TritonOutputMap >::output_.
Referenced by TritonClient().
|
protected |
Definition at line 306 of file TritonClient.cc.
References TritonClient::ServerSideStats::compute_infer_time_ns_, TritonClient::ServerSideStats::compute_input_time_ns_, TritonClient::ServerSideStats::compute_output_time_ns_, TritonClient::ServerSideStats::cumm_time_ns_, TritonClient::ServerSideStats::execution_count_, TritonClient::ServerSideStats::inference_count_, TritonClient::ServerSideStats::queue_time_ns_, and TritonClient::ServerSideStats::success_count_.
Referenced by evaluate().
|
inline |
|
protected |
Definition at line 57 of file TritonClient.h.
Referenced by batchSize(), evaluate(), and setBatchSize().
|
protected |
Definition at line 65 of file TritonClient.h.
Referenced by evaluate(), getServerSideStatus(), and TritonClient().
|
protected |
Definition at line 62 of file TritonClient.h.
Referenced by evaluate(), and TritonClient().
|
protected |
Definition at line 56 of file TritonClient.h.
Referenced by setBatchSize(), and TritonClient().
|
protected |
Definition at line 58 of file TritonClient.h.
Referenced by TritonClient().
|
protected |
Definition at line 67 of file TritonClient.h.
Referenced by batchmanager.BatchManager::CheckBatchScript(), evaluate(), getServerSideStatus(), batchmanager.BatchManager::ManageOutputDir(), valtools.webpage::parseArgs(), batchmanager.BatchManager::ParseOptions(), batchmanager.BatchManager::SubmitJob(), batchmanager.BatchManager::SubmitJobs(), and TritonClient().
|
protected |
Definition at line 63 of file TritonClient.h.
Referenced by evaluate(), and TritonClient().
|
protected |
Definition at line 59 of file TritonClient.h.
Referenced by getServerSideStatus(), TritonClient(), and verbose().