vitis::ai::DpuTask - 2.0 English

Vitis AI Library User Guide (UG1354)

Document ID
UG1354
Release Date
2022-01-20
Version
2.0 English
Base class for run a DPU task.

Quick Function Reference

The following table lists all the functions defined in the vitis::ai::DpuTask class:

Table 1. Quick Function Reference
Type Name Arguments
std::unique_ptr< DpuTask > create
  • kernel_name
std::unique_ptr< DpuTask > create
  • void
void run
  • void
void run_with_xrt_bo
  • void
void setMeanScaleBGR
  • const std::vector< float > & mean
  • const std::vector< float > & scale
void setImageBGR
  • const cv::Mat & img
void setImageRGB
  • const cv::Mat & img
std::vector< float > getMean
  • void
std::vector< float > getScale
  • void
std::vector< vitis::ai::library::InputTensor > getInputTensor
  • void
std::vector< vitis::ai::library::OutputTensor > getOutputTensor
  • void
size_t get_num_of_kernels
  • void
const xir::Graph * get_graph
  • void
std::unique_ptr< xir::Attrs > get_attrs
  • void
int get_input_buffer_size
  • void
size_t get_input_offset
  • void
int get_input_fix_point
  • void