create - create - 2.5 English - UG1354

Vitis AI Library User Guide (UG1354)

Document_ID
UG1354
Release_Date
2022-06-15
Version
2.5 English

Create an TextMountainPost object.

Prototype

std::unique_ptr< TextMountainPost > create(const std::vector< vitis::ai::library::InputTensor > &input_tensors, const std::vector< vitis::ai::library::OutputTensor > &output_tensors, int batch_size, int &real_batch_size, float *scale_h, float *scale_w);

Parameters

The following table lists the create function arguments.

Table 1. create Arguments
Type Member Description
const std::vector< vitis::ai::library::InputTensor > & input_tensors A vector of all input-tensors in the network. Usage: input_tensors[input_tensor_index].
const std::vector< vitis::ai::library::OutputTensor > & output_tensors A vector of all output-tensors in the network. Usage: output_tensors[output_index].
int batch_size the model batch information
int & real_batch_size the real batch information of the model
float * scale_h the array to hold the height scale for each input img
float * scale_w the array to hold the width scale for each input img

Returns

An unique printer of TextMountainPost