run - run - 6.2 English - UG1354

Vitis AI Library User Guide (UG1354)

Document_ID
UG1354
Release_Date
2026-08-26
Version
6.2 English

Function to get running results of the Unet2D neural network in batch mode.

Prototype

std::vector< vitis::ai::Unet2DResult > run(const std::vector< float * > &imgs, int len)=0;

Parameters

The following table lists the run function arguments.

Table 1. run Arguments
Type Member Description
const std::vector< float * > & imgs vector of Input data of input images (vector<float*>). The size of input images need equal to or less than batch size obtained by get_input_batch. If it is greater than batch, the extra part is ignored.
int len length of Input data: all input data should be same size.

Returns

The vector of Unet2DResult.