38 class PostProcessFunctionBase;
43 class PostProcessImplBase;
121 void set_config(std::vector<TensorInfo>& info, uint32_t batch_size);
144 std::vector<std::vector<std::shared_ptr<InferResult>>>
process(std::vector<int8_t*> data,
145 uint32_t current_batch_size);
169 std::vector<std::vector<std::shared_ptr<InferResult>>>
process(
170 std::vector<std::vector<std::shared_ptr<vart::Memory>>> tensor_memory,
171 uint32_t current_batch_size);
174 void populateReturnResult(std::vector<std::vector<std::shared_ptr<InferResult>>>& result);
176 std::shared_ptr<PostProcessImplBase> pimpl;
177 std::unique_ptr<PostProcessFunctionBase> postProcessBase;
178 std::string jsonData;
Interface class for post-processing inference results.
Definition: vart_postprocess.hpp:67
PostProcess(PostProcessType postprocess_type, std::string &json_data, std::shared_ptr< Device > device)
PostProcess() - Constructor for using existing post-process implementations.
PostProcess(std::shared_ptr< PostProcessImplBase > ptr)
PostProcess() - Constructor for using user defined implementation (Legacy)
void set_config(std::vector< TensorInfo > &info, uint32_t batch_size)
set_config() - Set PostProcessInfo config data before start doing the post-process.
std::vector< std::vector< std::shared_ptr< InferResult > > > process(std::vector< std::vector< std::shared_ptr< vart::Memory >>> tensor_memory, uint32_t current_batch_size)
process() - Process/parse tensors data from ML network output to create infer results.
const std::shared_ptr< PostProcessImplBase > & get_pimpl_handle() const
get_pimpl_handle() - Gives pointer to implementation class.
std::vector< std::vector< std::shared_ptr< InferResult > > > process(std::vector< int8_t * > data, uint32_t current_batch_size)
process() - Process/parse tensors data from ML network output to create infer results.
VART (Vitis AI Runtime) public API namespace.
PostProcessType
Definition: vart_postprocess_types.hpp:84
Device module managing hardware context and xclbin loading.
InferResult module for representing inference results.
Memory module for device memory allocation and management.