Function: get_dynamic_batch
Applicability
Product |
Supported (√/x) |
|---|---|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
Function Usage
Obtains the dynamic batch size information supported by a model based on the model description.
Prototype
- C Prototype
1aclError aclmdlGetDynamicBatch(const aclmdlDesc *modelDesc, aclmdlBatch *batch)
- Python Function
1batch, ret = acl.mdl.get_dynamic_batch(model_desc)
Parameter Description
Parameter |
Description |
|---|---|
model_desc |
Int, pointer address of the data of the aclmdlDesc type. Call acl.mdl.create_desc to create data of the aclmdlDesc type in advance. |
Return Value Description
Return Value |
Description |
|---|---|
batch |
Dict, dynamic batch information supported by the obtained model.
|
ret |
Int, error code.
|
Parent topic: aclmdlDesc