### aclmdlSetDynamicBatchSize Source: https://www.hiascend.com/document/detail/zh/CANNCommunityEdition/920/API/ascendgraphapi/docs/zh/api/graph_engine_api/header_and_library_files_description.md Sets the dynamic batch size for a model. This function is part of the AscendCL (ACL) C++ API. ```APIDOC ## aclmdlSetDynamicBatchSize ### Description Sets the dynamic batch size for a model. This function is part of the AscendCL (ACL) C++ API. ### Method Function call ### Endpoint aclmdlSetDynamicBatchSize ### Parameters - **modelId** (uint32_t) - Required - The ID of the model. - **batchSize** (uint32_t) - Required - The dynamic batch size to set. ### Return Value - **aclError** (aclError) - The error code returned by the function. Returns ACL_SUCCESS (0) on success, or a specific error code on failure. ### Notes - This function is used to set the dynamic batch size for a model that supports dynamic batch. - The model must be created with dynamic batch support. ### Example ```cpp #include "acl/acl.h" aclError ret = aclmdlSetDynamicBatchSize(modelId, batchSize); if (ret != ACL_SUCCESS) { // handle error } ``` ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.