#include <TritonData.h>
Public Types | |
using | Result = nvidia::inferenceserver::client::InferResult |
using | TensorMetadata = inference::ModelMetadataResponse_TensorMetadata |
using | ShapeType = std::vector< int64_t > |
using | ShapeView = triton_span::Span< ShapeType::const_iterator > |
Public Member Functions | |
TritonData (const std::string &name, const TensorMetadata &model_info, bool noBatch) | |
bool | setShape (const ShapeType &newShape) |
bool | setShape (unsigned loc, int64_t val) |
template<typename DT > | |
void | toServer (std::shared_ptr< TritonInput< DT >> ptr) |
template<typename DT > | |
TritonOutput< DT > | fromServer () const |
const ShapeView & | shape () const |
int64_t | byteSize () const |
const std::string & | dname () const |
unsigned | batchSize () const |
bool | variableDims () const |
int64_t | sizeDims () const |
int64_t | sizeShape () const |
Private Member Functions | |
bool | setShape (const ShapeType &newShape, bool canThrow) |
bool | setShape (unsigned loc, int64_t val, bool canThrow) |
void | setBatchSize (unsigned bsize) |
void | reset () |
void | setResult (std::shared_ptr< Result > result) |
IO * | data () |
bool | anyNeg (const ShapeView &vec) const |
int64_t | dimProduct (const ShapeView &vec) const |
void | createObject (IO **ioptr) const |
Private Attributes | |
std::string | name_ |
std::shared_ptr< IO > | data_ |
const ShapeType | dims_ |
bool | noBatch_ |
unsigned | batchSize_ |
ShapeType | fullShape_ |
ShapeView | shape_ |
bool | variableDims_ |
int64_t | productDims_ |
std::string | dname_ |
inference::DataType | dtype_ |
int64_t | byteSize_ |
std::any | holder_ |
std::shared_ptr< Result > | result_ |
Friends | |
class | TritonClient |
Definition at line 31 of file TritonData.h.
using lartriton::TritonData< IO >::Result = nvidia::inferenceserver::client::InferResult |
Definition at line 33 of file TritonData.h.
using lartriton::TritonData< IO >::ShapeType = std::vector<int64_t> |
Definition at line 35 of file TritonData.h.
using lartriton::TritonData< IO >::ShapeView = triton_span::Span<ShapeType::const_iterator> |
Definition at line 36 of file TritonData.h.
using lartriton::TritonData< IO >::TensorMetadata = inference::ModelMetadataResponse_TensorMetadata |
Definition at line 34 of file TritonData.h.
lartriton::TritonData< IO >::TritonData | ( | const std::string & | name, |
const TensorMetadata & | model_info, | ||
bool | noBatch | ||
) |
Definition at line 27 of file TritonData.cc.
|
inlineprivate |
Definition at line 75 of file TritonData.h.
|
inline |
Definition at line 55 of file TritonData.h.
|
inline |
Definition at line 53 of file TritonData.h.
|
private |
|
inlineprivate |
Definition at line 72 of file TritonData.h.
|
inlineprivate |
Definition at line 78 of file TritonData.h.
|
inline |
Definition at line 54 of file TritonData.h.
TritonOutput< DT > lartriton::TritonOutputData::fromServer | ( | ) | const |
Definition at line 138 of file TritonData.cc.
|
private |
Definition at line 170 of file TritonData.cc.
|
private |
Definition at line 100 of file TritonData.cc.
|
inlineprivate |
Definition at line 71 of file TritonData.h.
|
inline |
Definition at line 42 of file TritonData.h.
|
inline |
Definition at line 43 of file TritonData.h.
|
private |
|
private |
Definition at line 66 of file TritonData.cc.
|
inline |
Definition at line 52 of file TritonData.h.
|
inline |
Definition at line 59 of file TritonData.h.
|
inline |
Definition at line 61 of file TritonData.h.
void lartriton::TritonInputData::toServer | ( | std::shared_ptr< TritonInput< DT >> | ptr | ) |
Definition at line 109 of file TritonData.cc.
|
inline |
Definition at line 58 of file TritonData.h.
|
friend |
Definition at line 64 of file TritonData.h.
|
private |
Definition at line 88 of file TritonData.h.
|
private |
Definition at line 95 of file TritonData.h.
|
private |
Definition at line 85 of file TritonData.h.
|
private |
Definition at line 86 of file TritonData.h.
|
private |
Definition at line 93 of file TritonData.h.
|
private |
Definition at line 94 of file TritonData.h.
|
private |
Definition at line 89 of file TritonData.h.
|
private |
Definition at line 96 of file TritonData.h.
|
private |
Definition at line 84 of file TritonData.h.
|
private |
Definition at line 87 of file TritonData.h.
|
private |
Definition at line 92 of file TritonData.h.
|
private |
Definition at line 97 of file TritonData.h.
|
private |
Definition at line 90 of file TritonData.h.
|
private |
Definition at line 91 of file TritonData.h.