Function: set_config
Applicable Products
- Ascend 950PR&950DT products: Supported
- Atlas A3 products: Supported
- Atlas A2 products: Supported
- Atlas 200I/500 A2 inference products: Supported
- Atlas inference products: Supported
- Atlas training products: Supported
Function
Functions as an extended API of acl.prof.create_config to set profile data collection parameters.
This API can be called multiple times. You need to ensure data consistency and accuracy.
Prototype
-
C Prototype
aclError aclprofSetConfig(aclprofConfigType configType, const char *config, size_t configLength) -
Python Function
ret = acl.prof.set_config(config_type, config)
Parameters
| Parameter | Description |
|---|---|
| config_type | Int, value of the config_type parameter. Each constant indicates a different collection configuration. To collect multiple types of profile data, you need to call this API multiple times. For details, see aclprofConfigType. |
| config | Str, configuration parameter value. |
Return Values
| Return Value | Description |
|---|---|
| ret | Int, error code.0: successIf other values are returned, the operation fails. |
Constraints
Call acl.prof.set_config and then acl.prof.start. You can call this API as required.