CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Private Member Functions | Private Attributes | Friends
TritonData< IO > Class Template Reference

#include <TritonData.h>

Public Types

using Result = triton::client::InferResult
 
using ShapeType = std::vector< int64_t >
 
using ShapeView = edm::Span< ShapeType::const_iterator >
 
using TensorMetadata = inference::ModelMetadataResponse_TensorMetadata
 

Public Member Functions

template<typename DT >
TritonInputContainer< DT > allocate (bool reserve=true)
 
unsigned batchSize () const
 
int64_t byteSize () const
 
const std::string & dname () const
 
template<typename DT >
TritonOutput< DT > fromServer () const
 
void prepare ()
 
void setShape (const ShapeType &newShape)
 
void setShape (unsigned loc, int64_t val)
 
const ShapeViewshape () const
 
int64_t sizeDims () const
 
int64_t sizeShape () const
 
template<typename DT >
void toServer (TritonInputContainer< DT > ptr)
 
 TritonData (const std::string &name, const TensorMetadata &model_info, TritonClient *client, const std::string &pid)
 
bool variableDims () const
 

Private Member Functions

bool anyNeg (const ShapeView &vec) const
 
template<typename DT >
void checkType () const
 
triton::client::InferenceServerGrpcClient * client ()
 
void computeSizes ()
 
void createObject (IO **ioptr)
 
IO * data ()
 
int64_t dimProduct (const ShapeView &vec) const
 
unsigned fullLoc (unsigned loc) const
 
void reset ()
 
void resetSizes ()
 
void setBatchSize (unsigned bsize)
 
void setResult (std::shared_ptr< Result > result)
 
unsigned uid () const
 
void updateMem (size_t size)
 
std::string xput () const
 

Private Attributes

unsigned batchSize_
 
int64_t byteSize_
 
size_t byteSizePerBatch_
 
TritonClientclient_
 
std::shared_ptr< IO > data_
 
const ShapeType dims_
 
std::string dname_
 
bool done_ {}
 
inference::DataType dtype_
 
ShapeType fullShape_
 
std::shared_ptr< void > holder_
 
std::shared_ptr< TritonMemResource< IO > > memResource_
 
std::string name_
 
bool noBatch_
 
int64_t productDims_
 
std::shared_ptr< Resultresult_
 
ShapeView shape_
 
std::string shmName_
 
size_t sizeShape_
 
size_t totalByteSize_
 
bool useShm_
 
bool variableDims_
 

Friends

class TritonClient
 
class TritonCpuShmResource< IO >
 
class TritonHeapResource< IO >
 
class TritonMemResource< IO >
 

Detailed Description

template<typename IO>
class TritonData< IO >

Definition at line 47 of file TritonData.h.

Member Typedef Documentation

◆ Result

template<typename IO>
using TritonData< IO >::Result = triton::client::InferResult

Definition at line 49 of file TritonData.h.

◆ ShapeType

template<typename IO>
using TritonData< IO >::ShapeType = std::vector<int64_t>

Definition at line 51 of file TritonData.h.

◆ ShapeView

template<typename IO>
using TritonData< IO >::ShapeView = edm::Span<ShapeType::const_iterator>

Definition at line 52 of file TritonData.h.

◆ TensorMetadata

template<typename IO>
using TritonData< IO >::TensorMetadata = inference::ModelMetadataResponse_TensorMetadata

Definition at line 50 of file TritonData.h.

Constructor & Destructor Documentation

◆ TritonData()

template<typename IO>
TritonData< IO >::TritonData ( const std::string &  name,
const TensorMetadata model_info,
TritonClient client,
const std::string &  pid 
)

Definition at line 18 of file TritonData.cc.

References TritonData< IO >::createObject(), and TritonData< IO >::data_.

22  : name_(name),
23  client_(client),
25  //ensure unique name for shared memory region
26  shmName_(useShm_ ? pid + "_" + xput() + std::to_string(uid()) : ""),
27  dims_(model_info.shape().begin(), model_info.shape().end()),
28  noBatch_(client_->noBatch()),
29  batchSize_(0),
31  shape_(fullShape_.begin() + (noBatch_ ? 0 : 1), fullShape_.end()),
34  dname_(model_info.datatype()),
35  dtype_(ni::ProtocolStringToDataType(dname_)),
36  byteSize_(ni::GetDataTypeByteSize(dtype_)),
37  totalByteSize_(0) {
38  //create input or output object
39  IO* iotmp;
40  createObject(&iotmp);
41  data_.reset(iotmp);
42 }
std::shared_ptr< IO > data_
Definition: TritonData.h:125
unsigned uid() const
Definition: TritonData.h:117
size_t totalByteSize_
Definition: TritonData.h:141
std::string to_string(const V &value)
Definition: OMSAccess.h:77
const ShapeType dims_
Definition: TritonData.h:129
const ShapeView & shape() const
Definition: TritonData.h:71
bool useShm_
Definition: TritonData.h:127
ShapeView shape_
Definition: TritonData.h:133
int64_t productDims_
Definition: TritonData.h:135
int64_t byteSize_
Definition: TritonData.h:138
TritonClient * client_
Definition: TritonData.h:126
bool anyNeg(const ShapeView &vec) const
Definition: TritonData.h:109
void createObject(IO **ioptr)
inference::DataType dtype_
Definition: TritonData.h:137
bool noBatch_
Definition: TritonData.h:130
int64_t dimProduct(const ShapeView &vec) const
Definition: TritonData.h:112
std::string xput() const
Definition: TritonData.cc:57
std::string dname_
Definition: TritonData.h:136
bool useSharedMemory() const
Definition: TritonClient.h:41
ShapeType fullShape_
Definition: TritonData.h:132
std::string name_
Definition: TritonData.h:124
unsigned batchSize_
Definition: TritonData.h:131
std::string shmName_
Definition: TritonData.h:128
bool variableDims_
Definition: TritonData.h:134

Member Function Documentation

◆ allocate()

template<typename DT >
TritonInputContainer< DT > TritonInputData::allocate ( bool  reserve = true)

Definition at line 149 of file TritonData.cc.

References TritonData< IO >::anyNeg(), TritonData< IO >::batchSize_, TritonData< IO >::computeSizes(), TritonData< IO >::shape_, and TritonData< IO >::sizeShape_.

149  {
150  //automatically creates a vector for each batch entry (if batch size known)
151  auto ptr = std::make_shared<TritonInput<DT>>(batchSize_);
152  if (reserve and !anyNeg(shape_)) {
153  computeSizes();
154  for (auto& vec : *ptr) {
155  vec.reserve(sizeShape_);
156  }
157  }
158  return ptr;
159 }
void computeSizes()
Definition: TritonData.cc:105
ShapeView shape_
Definition: TritonData.h:133
size_t sizeShape_
Definition: TritonData.h:139
bool anyNeg(const ShapeView &vec) const
Definition: TritonData.h:109
unsigned batchSize_
Definition: TritonData.h:131

◆ anyNeg()

template<typename IO>
bool TritonData< IO >::anyNeg ( const ShapeView vec) const
inlineprivate

Definition at line 109 of file TritonData.h.

References edm::Span< T >::begin(), edm::Span< T >::end(), and mps_fire::i.

Referenced by TritonData< IO >::allocate().

109  {
110  return std::any_of(vec.begin(), vec.end(), [](int64_t i) { return i < 0; });
111  }

◆ batchSize()

template<typename IO>
unsigned TritonData< IO >::batchSize ( ) const
inline

Definition at line 74 of file TritonData.h.

References TritonData< IO >::batchSize_.

74 { return batchSize_; }
unsigned batchSize_
Definition: TritonData.h:131

◆ byteSize()

template<typename IO>
int64_t TritonData< IO >::byteSize ( ) const
inline

Definition at line 72 of file TritonData.h.

References TritonData< IO >::byteSize_.

72 { return byteSize_; }
int64_t byteSize_
Definition: TritonData.h:138

◆ checkType()

template<typename IO>
template<typename DT >
void TritonData< IO >::checkType ( ) const
inlineprivate

Definition at line 102 of file TritonData.h.

References TritonData< IO >::dname_, GeomDetEnumerators::DT, TritonData< IO >::dtype_, Exception, Skims_PA_cff::name, and TritonData< IO >::name_.

102  {
103  if (!triton_utils::checkType<DT>(dtype_))
104  throw cms::Exception("TritonDataError")
105  << name_ << ": inconsistent data type " << typeid(DT).name() << " for " << dname_;
106  }
inference::DataType dtype_
Definition: TritonData.h:137
std::string dname_
Definition: TritonData.h:136
std::string name_
Definition: TritonData.h:124

◆ client()

template<typename IO >
tc::InferenceServerGrpcClient * TritonData< IO >::client ( )
private

Definition at line 67 of file TritonData.cc.

67  {
68  return client_->client();
69 }
auto client()
Definition: TritonClient.h:87
TritonClient * client_
Definition: TritonData.h:126

◆ computeSizes()

template<typename IO >
void TritonData< IO >::computeSizes ( )
private

Definition at line 105 of file TritonData.cc.

Referenced by TritonData< IO >::allocate(), TritonData< IO >::prepare(), and TritonData< IO >::toServer().

105  {
106  sizeShape_ = sizeShape();
109 }
size_t totalByteSize_
Definition: TritonData.h:141
size_t byteSizePerBatch_
Definition: TritonData.h:140
int64_t byteSize_
Definition: TritonData.h:138
size_t sizeShape_
Definition: TritonData.h:139
int64_t sizeShape() const
Definition: TritonData.h:80
unsigned batchSize_
Definition: TritonData.h:131

◆ createObject()

template<typename IO>
void TritonData< IO >::createObject ( IO **  ioptr)
private

◆ data()

template<typename IO>
IO* TritonData< IO >::data ( )
inlineprivate

Definition at line 96 of file TritonData.h.

References TritonData< IO >::data_.

Referenced by TritonData< IO >::toServer().

96 { return data_.get(); }
std::shared_ptr< IO > data_
Definition: TritonData.h:125

◆ dimProduct()

template<typename IO>
int64_t TritonData< IO >::dimProduct ( const ShapeView vec) const
inlineprivate

Definition at line 112 of file TritonData.h.

References edm::Span< T >::begin(), and edm::Span< T >::end().

Referenced by TritonData< IO >::sizeShape().

112  {
113  return std::accumulate(vec.begin(), vec.end(), 1, std::multiplies<int64_t>());
114  }

◆ dname()

template<typename IO>
const std::string& TritonData< IO >::dname ( ) const
inline

Definition at line 73 of file TritonData.h.

References TritonData< IO >::dname_.

73 { return dname_; }
std::string dname_
Definition: TritonData.h:136

◆ fromServer()

template<typename DT >
TritonOutput< DT > TritonOutputData::fromServer ( ) const

Definition at line 204 of file TritonData.cc.

References TritonData< IO >::batchSize_, TritonData< IO >::done_, GeomDetEnumerators::DT, Exception, TritonData< IO >::memResource_, TritonData< IO >::name_, hltrates_dqm_sourceclient-live_cfg::offset, diffTwoXMLs::r1, TritonData< IO >::result_, and TritonData< IO >::sizeShape_.

204  {
205  //shouldn't be called twice
206  if (done_)
207  throw cms::Exception("TritonDataError") << name_ << " fromServer() was already called for this event";
208 
209  if (!result_) {
210  throw cms::Exception("TritonDataError") << name_ << " fromServer(): missing result";
211  }
212 
213  //check type
214  checkType<DT>();
215 
216  const uint8_t* r0 = memResource_->copyOutput();
217  const DT* r1 = reinterpret_cast<const DT*>(r0);
218 
219  TritonOutput<DT> dataOut;
220  dataOut.reserve(batchSize_);
221  for (unsigned i0 = 0; i0 < batchSize_; ++i0) {
222  auto offset = i0 * sizeShape_;
223  dataOut.emplace_back(r1 + offset, r1 + offset + sizeShape_);
224  }
225 
226  done_ = true;
227  return dataOut;
228 }
bool done_
Definition: TritonData.h:149
size_t sizeShape_
Definition: TritonData.h:139
std::shared_ptr< Result > result_
Definition: TritonData.h:147
std::vector< edm::Span< const DT * > > TritonOutput
Definition: TritonData.h:37
std::shared_ptr< TritonMemResource< IO > > memResource_
Definition: TritonData.h:146
std::string name_
Definition: TritonData.h:124
unsigned batchSize_
Definition: TritonData.h:131

◆ fullLoc()

template<typename IO>
unsigned TritonData< IO >::fullLoc ( unsigned  loc) const
inlineprivate

Definition at line 92 of file TritonData.h.

References TritonData< IO >::noBatch_.

Referenced by TritonData< IO >::reset().

92 { return loc + (noBatch_ ? 0 : 1); }
bool noBatch_
Definition: TritonData.h:130

◆ prepare()

void TritonOutputData::prepare ( )

Definition at line 196 of file TritonData.cc.

References TritonData< IO >::computeSizes(), TritonData< IO >::memResource_, TritonData< IO >::totalByteSize_, and TritonData< IO >::updateMem().

196  {
197  computeSizes();
199  memResource_->set();
200 }
size_t totalByteSize_
Definition: TritonData.h:141
void computeSizes()
Definition: TritonData.cc:105
void updateMem(size_t size)
Definition: TritonData.cc:120
std::shared_ptr< TritonMemResource< IO > > memResource_
Definition: TritonData.h:146

◆ reset()

void TritonOutputData::reset ( void  )
private

Definition at line 231 of file TritonData.cc.

References TritonData< IO >::data_, TritonData< IO >::dims_, TritonData< IO >::done_, TritonData< IO >::fullLoc(), TritonData< IO >::fullShape_, TritonData< IO >::holder_, mps_fire::i, TritonData< IO >::resetSizes(), TritonData< IO >::shape_, edm::Span< T >::size(), and TritonData< IO >::variableDims_.

231  {
232  done_ = false;
233  holder_.reset();
234  data_->Reset();
235  //reset shape
236  if (variableDims_) {
237  for (unsigned i = 0; i < shape_.size(); ++i) {
238  unsigned locFull = fullLoc(i);
239  fullShape_[locFull] = dims_[locFull];
240  }
241  }
242  resetSizes();
243 }
std::shared_ptr< IO > data_
Definition: TritonData.h:125
std::shared_ptr< void > holder_
Definition: TritonData.h:145
bool done_
Definition: TritonData.h:149
unsigned fullLoc(unsigned loc) const
Definition: TritonData.h:92
const ShapeType dims_
Definition: TritonData.h:129
ShapeView shape_
Definition: TritonData.h:133
auto size() const
Definition: Span.h:24
void resetSizes()
Definition: TritonData.cc:111
ShapeType fullShape_
Definition: TritonData.h:132
bool variableDims_
Definition: TritonData.h:134

◆ resetSizes()

template<typename IO >
void TritonData< IO >::resetSizes ( )
private

Definition at line 111 of file TritonData.cc.

Referenced by TritonData< IO >::reset().

111  {
112  sizeShape_ = 0;
113  byteSizePerBatch_ = 0;
114  totalByteSize_ = 0;
115 }
size_t totalByteSize_
Definition: TritonData.h:141
size_t byteSizePerBatch_
Definition: TritonData.h:140
size_t sizeShape_
Definition: TritonData.h:139

◆ setBatchSize()

template<typename IO >
void TritonData< IO >::setBatchSize ( unsigned  bsize)
private

Definition at line 98 of file TritonData.cc.

98  {
99  batchSize_ = bsize;
100  if (!noBatch_)
101  fullShape_[0] = batchSize_;
102 }
bool noBatch_
Definition: TritonData.h:130
ShapeType fullShape_
Definition: TritonData.h:132
unsigned batchSize_
Definition: TritonData.h:131

◆ setResult()

template<typename IO>
void TritonData< IO >::setResult ( std::shared_ptr< Result result)
inlineprivate

Definition at line 95 of file TritonData.h.

References mps_fire::result, and TritonData< IO >::result_.

95 { result_ = result; }
std::shared_ptr< Result > result_
Definition: TritonData.h:147

◆ setShape() [1/2]

template<typename IO>
void TritonData< IO >::setShape ( const ShapeType newShape)

◆ setShape() [2/2]

template<typename IO >
void TritonData< IO >::setShape ( unsigned  loc,
int64_t  val 
)

Definition at line 80 of file TritonData.cc.

References Exception, and heppy_batch::val.

80  {
81  unsigned locFull = fullLoc(loc);
82 
83  //check boundary
84  if (locFull >= fullShape_.size())
85  throw cms::Exception("TritonDataError")
86  << name_ << " setShape(): dimension " << locFull << " out of bounds (" << fullShape_.size() << ")";
87 
88  if (val != fullShape_[locFull]) {
89  if (dims_[locFull] == -1)
90  fullShape_[locFull] = val;
91  else
92  throw cms::Exception("TritonDataError")
93  << name_ << " setShape(): attempt to change value of non-variable shape dimension " << loc;
94  }
95 }
unsigned fullLoc(unsigned loc) const
Definition: TritonData.h:92
const ShapeType dims_
Definition: TritonData.h:129
ShapeType fullShape_
Definition: TritonData.h:132
std::string name_
Definition: TritonData.h:124

◆ shape()

template<typename IO>
const ShapeView& TritonData< IO >::shape ( void  ) const
inline

Definition at line 71 of file TritonData.h.

References TritonData< IO >::shape_.

71 { return shape_; }
ShapeView shape_
Definition: TritonData.h:133

◆ sizeDims()

template<typename IO>
int64_t TritonData< IO >::sizeDims ( ) const
inline

Definition at line 78 of file TritonData.h.

References TritonData< IO >::productDims_.

Referenced by TritonData< IO >::sizeShape().

78 { return productDims_; }
int64_t productDims_
Definition: TritonData.h:135

◆ sizeShape()

template<typename IO>
int64_t TritonData< IO >::sizeShape ( ) const
inline

Definition at line 80 of file TritonData.h.

References TritonData< IO >::dimProduct(), TritonData< IO >::shape_, TritonData< IO >::sizeDims(), and TritonData< IO >::variableDims_.

80 { return variableDims_ ? dimProduct(shape_) : sizeDims(); }
ShapeView shape_
Definition: TritonData.h:133
int64_t sizeDims() const
Definition: TritonData.h:78
int64_t dimProduct(const ShapeView &vec) const
Definition: TritonData.h:112
bool variableDims_
Definition: TritonData.h:134

◆ toServer()

template<typename DT >
void TritonInputData::toServer ( TritonInputContainer< DT >  ptr)

Definition at line 163 of file TritonData.cc.

References TritonData< IO >::batchSize_, TritonData< IO >::byteSizePerBatch_, TritonData< IO >::computeSizes(), TritonData< IO >::data(), TritonData< IO >::data_, TritonData< IO >::done_, Exception, TritonData< IO >::fullShape_, TritonData< IO >::holder_, TritonData< IO >::memResource_, TritonData< IO >::name_, TritonData< IO >::totalByteSize_, and TritonData< IO >::updateMem().

163  {
164  //shouldn't be called twice
165  if (done_)
166  throw cms::Exception("TritonDataError") << name_ << " toServer() was already called for this event";
167 
168  const auto& data_in = *ptr;
169 
170  //check batch size
171  if (data_in.size() != batchSize_) {
172  throw cms::Exception("TritonDataError") << name_ << " toServer(): input vector has size " << data_in.size()
173  << " but specified batch size is " << batchSize_;
174  }
175 
176  //shape must be specified for variable dims or if batch size changes
177  data_->SetShape(fullShape_);
178 
179  //check type
180  checkType<DT>();
181 
182  computeSizes();
184  for (unsigned i0 = 0; i0 < batchSize_; ++i0) {
185  memResource_->copyInput(data_in[i0].data(), i0 * byteSizePerBatch_);
186  }
187  memResource_->set();
188 
189  //keep input data in scope
190  holder_ = ptr;
191  done_ = true;
192 }
std::shared_ptr< IO > data_
Definition: TritonData.h:125
std::shared_ptr< void > holder_
Definition: TritonData.h:145
bool done_
Definition: TritonData.h:149
size_t totalByteSize_
Definition: TritonData.h:141
size_t byteSizePerBatch_
Definition: TritonData.h:140
void computeSizes()
Definition: TritonData.cc:105
void updateMem(size_t size)
Definition: TritonData.cc:120
IO * data()
Definition: TritonData.h:96
std::shared_ptr< TritonMemResource< IO > > memResource_
Definition: TritonData.h:146
ShapeType fullShape_
Definition: TritonData.h:132
std::string name_
Definition: TritonData.h:124
unsigned batchSize_
Definition: TritonData.h:131

◆ uid()

template<typename IO>
unsigned TritonData< IO >::uid ( ) const
inlineprivate

Definition at line 117 of file TritonData.h.

117  {
118  static std::atomic<unsigned> uid{0};
119  return ++uid;
120  }
unsigned uid() const
Definition: TritonData.h:117

◆ updateMem()

template<typename IO >
void TritonData< IO >::updateMem ( size_t  size)
private

Definition at line 120 of file TritonData.cc.

References LocalCPU, LocalGPU, or, and findQualityFiles::size.

Referenced by TritonData< IO >::prepare(), and TritonData< IO >::toServer().

120  {
121  if (!memResource_ or size > memResource_->size()) {
123  //avoid unnecessarily throwing in destructor
124  if (memResource_)
125  memResource_->close();
126  //need to destroy before constructing new instance because shared memory key will be reused
127  memResource_.reset();
128  memResource_ = std::make_shared<TritonCpuShmResource<IO>>(this, shmName_, size);
129  }
130 #ifdef TRITON_ENABLE_GPU
132  //avoid unnecessarily throwing in destructor
133  if (memResource_)
134  memResource_->close();
135  //need to destroy before constructing new instance because shared memory key will be reused
136  memResource_.reset();
137  memResource_ = std::make_shared<TritonGpuShmResource<IO>>(this, shmName_, size);
138  }
139 #endif
140  //for remote/heap, size increases don't matter
141  else if (!memResource_)
142  memResource_ = std::make_shared<TritonHeapResource<IO>>(this, shmName_, size);
143  }
144 }
size
Write out results.
bool useShm_
Definition: TritonData.h:127
The Signals That Services Can Subscribe To This is based on ActivityRegistry and is current per Services can connect to the signals distributed by the ActivityRegistry in order to monitor the activity of the application Each possible callback has some defined which we here list in angle e< void, edm::EventID const &, edm::Timestamp const & > We also list in braces which AR_WATCH_USING_METHOD_ is used for those or
Definition: Activities.doc:12
TritonServerType serverType() const
Definition: TritonClient.h:46
TritonClient * client_
Definition: TritonData.h:126
std::shared_ptr< TritonMemResource< IO > > memResource_
Definition: TritonData.h:146
std::string shmName_
Definition: TritonData.h:128

◆ variableDims()

template<typename IO>
bool TritonData< IO >::variableDims ( ) const
inline

Definition at line 77 of file TritonData.h.

References TritonData< IO >::variableDims_.

77 { return variableDims_; }
bool variableDims_
Definition: TritonData.h:134

◆ xput()

std::string TritonOutputData::xput ( ) const
private

Definition at line 57 of file TritonData.cc.

57  {
58  return "input";
59 }

Friends And Related Function Documentation

◆ TritonClient

template<typename IO>
friend class TritonClient
friend

Definition at line 83 of file TritonData.h.

◆ TritonCpuShmResource< IO >

template<typename IO>
friend class TritonCpuShmResource< IO >
friend

Definition at line 86 of file TritonData.h.

◆ TritonHeapResource< IO >

template<typename IO>
friend class TritonHeapResource< IO >
friend

Definition at line 85 of file TritonData.h.

◆ TritonMemResource< IO >

template<typename IO>
friend class TritonMemResource< IO >
friend

Definition at line 84 of file TritonData.h.

Member Data Documentation

◆ batchSize_

template<typename IO>
unsigned TritonData< IO >::batchSize_
private

◆ byteSize_

template<typename IO>
int64_t TritonData< IO >::byteSize_
private

Definition at line 138 of file TritonData.h.

Referenced by TritonData< IO >::byteSize().

◆ byteSizePerBatch_

template<typename IO>
size_t TritonData< IO >::byteSizePerBatch_
private

Definition at line 140 of file TritonData.h.

Referenced by TritonData< IO >::toServer().

◆ client_

template<typename IO>
TritonClient* TritonData< IO >::client_
private

Definition at line 126 of file TritonData.h.

◆ data_

template<typename IO>
std::shared_ptr<IO> TritonData< IO >::data_
private

◆ dims_

template<typename IO>
const ShapeType TritonData< IO >::dims_
private

Definition at line 129 of file TritonData.h.

Referenced by TritonData< IO >::reset().

◆ dname_

template<typename IO>
std::string TritonData< IO >::dname_
private

Definition at line 136 of file TritonData.h.

Referenced by TritonData< IO >::checkType(), and TritonData< IO >::dname().

◆ done_

template<typename IO>
bool TritonData< IO >::done_ {}
mutableprivate

◆ dtype_

template<typename IO>
inference::DataType TritonData< IO >::dtype_
private

Definition at line 137 of file TritonData.h.

Referenced by TritonData< IO >::checkType().

◆ fullShape_

template<typename IO>
ShapeType TritonData< IO >::fullShape_
private

Definition at line 132 of file TritonData.h.

Referenced by TritonData< IO >::reset(), and TritonData< IO >::toServer().

◆ holder_

template<typename IO>
std::shared_ptr<void> TritonData< IO >::holder_
private

Definition at line 145 of file TritonData.h.

Referenced by TritonData< IO >::reset(), and TritonData< IO >::toServer().

◆ memResource_

template<typename IO>
std::shared_ptr<TritonMemResource<IO> > TritonData< IO >::memResource_
private

◆ name_

template<typename IO>
std::string TritonData< IO >::name_
private

◆ noBatch_

template<typename IO>
bool TritonData< IO >::noBatch_
private

Definition at line 130 of file TritonData.h.

Referenced by TritonData< IO >::fullLoc().

◆ productDims_

template<typename IO>
int64_t TritonData< IO >::productDims_
private

Definition at line 135 of file TritonData.h.

Referenced by TritonData< IO >::sizeDims().

◆ result_

template<typename IO>
std::shared_ptr<Result> TritonData< IO >::result_
private

Definition at line 147 of file TritonData.h.

Referenced by TritonData< IO >::fromServer(), and TritonData< IO >::setResult().

◆ shape_

template<typename IO>
ShapeView TritonData< IO >::shape_
private

◆ shmName_

template<typename IO>
std::string TritonData< IO >::shmName_
private

Definition at line 128 of file TritonData.h.

◆ sizeShape_

template<typename IO>
size_t TritonData< IO >::sizeShape_
private

Definition at line 139 of file TritonData.h.

Referenced by TritonData< IO >::allocate(), and TritonData< IO >::fromServer().

◆ totalByteSize_

template<typename IO>
size_t TritonData< IO >::totalByteSize_
private

Definition at line 141 of file TritonData.h.

Referenced by TritonData< IO >::prepare(), and TritonData< IO >::toServer().

◆ useShm_

template<typename IO>
bool TritonData< IO >::useShm_
private

Definition at line 127 of file TritonData.h.

◆ variableDims_

template<typename IO>
bool TritonData< IO >::variableDims_
private