GetDynamicGearInfo
Function Usage
Obtains the dynamic input profiles supported by a model, including dynamic batches, dynamic image sizes, and dynamic dimension profiles.
Prototype
1 | std::vector<std::vector<uint64_t>> ModelInferenceProcessor::GetDynamicGearInfo(); |
Response Parameters
Data Structure |
Description |
|---|---|
std::vector<std::vector<uint64_t>> |
Input tensor profiles supported by a model.
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, if the model is a dynamic image size model, std::vector<uint64_t> indicates the height and width of a certain profile. |
Parent topic: ModelInferenceProcessor