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.
| 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 |