Class Batch¶
Defined in File batcher.hpp
Class Documentation¶
-
class Batch¶
The Batch is what the batcher produces and pushes to the workers. It represents the requests, the buffers associated with the request and other metadata that should be sent to the worker.
Public Functions
-
explicit Batch(const WorkerInfo *worker)¶
-
~Batch()¶
Destructor.
-
void addRequest(InferenceRequestPtr request)¶
-
const InferenceRequestPtr &getRequest(size_t index)¶
-
const std::vector<InferenceRequestPtr> &getRequests() const¶
-
const BufferPtrs &getInputBuffers() const¶
-
const BufferPtrs &getOutputBuffers() const¶
-
bool empty() const¶
-
size_t size() const¶
-
size_t getInputSize() const¶
-
size_t getOutputSize() const¶
-
inline auto begin() const¶
-
inline auto end() const¶
-
explicit Batch(const WorkerInfo *worker)¶