aclmdlRITaskGetParams

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

Ascend 950PR/Ascend 950DT

☓

Atlas A3 training products/Atlas A3 inference products

√

Atlas A2 training products/Atlas A2 inference products

√

Atlas 200I/500 A2 inference products

☓

Atlas inference products

☓

Atlas training products

☓

Function

Obtains task parameter information.

Before calling this API to obtain the parameter information of a specified task, call aclmdlRIGetTasksByStream to obtain all tasks in the specified stream.

Prototype

1
aclError aclmdlRITaskGetParams(aclmdlRITask task, aclmdlRITaskParams* params)

Parameters

Parameter

Input/Output

Description

task

Input

Task. For details about the type definition, see aclmdlRITask.

params

Output

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.