aclmdlRITaskSetParams
Note: This API is for trial use and may be changed in later versions. It is not available in production environments.
Applicable Products
Product |
Supported |
|---|---|
☓ |
|
√ |
|
√ |
|
☓ |
|
☓ |
|
☓ |
Function
Sets task parameter information.
Before calling this API to set task parameter information, call aclmdlRIGetTasksByStream to obtain all tasks in the specified stream and then call aclmdlRITaskGetParams to obtain the parameter information of the specified task. Then, call aclmdlRITaskSetParams if the parameter information needs to be updated.
Prototype
1 | aclError aclmdlRITaskSetParams(aclmdlRITask task, aclmdlRITaskParams* params) |
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
task |
Input |
Task. For details about the type definition, see aclmdlRITask. |
params |
Input |
Parameter information. For details about the type definition, see aclmdlRITaskParams. |
Returns
0 on success; otherwise, failure. For details, see aclError.
Restrictions
- This API does not support concurrent calls for the same model running instance.
- When updating task parameters, ensure that the dependencies between tasks in the modified model running instance are correct. Otherwise, subsequent services, such as model execution, may be abnormal.