GetDynamicGearInfo

Function Usage

Obtains the dynamic input profiles supported by the model, supporting models with dynamic batches, dynamic image sizes, and dynamic dimension profiles.

Prototype

1
std::vector<std::vector<uint64_t>> Model::GetDynamicGearInfo();

Response Parameters

Data Structure

Description

std::vector<std::vector<uint64_t>>

Input tensor profiles supported by a model.

  • std::vector<std::vector<uint64_t>>: information of all profiles.
  • std::vector<uint64_t>: specific value of a certain profile.

If the returned data structure is empty, the profile information fails to be obtained or the model is not one of the three models described above. For details about the cause, see the error information.

For example, for a model with dynamic image sizes, std::vector<uint64_t> indicates the height and width of a certain profile.