aclSetTensorDynamicInput

Applicability

Product

Supported

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

Description

Identifies the dynamic inputs after the tensor description is created by calling aclCreateTensorDesc. Assumes that an operator takes dynamic input x and required input y, and the actual input count x is subject to change, you can call aclSetTensorDynamicInput to set dynamicInputName to x. Behind the scenes, the API indexes the dynamic inputs based on dynamicInputName.

Prototype

aclError aclSetTensorDynamicInput(aclTensorDesc *desc, const char *dynamicInputName)

Parameters

Parameter

Input/Output

Description

desc

Output

Pointer to data of the aclTensorDesc type.

Call aclCreateTensorDesc to create data of the aclTensorDesc type in advance.

dynamicInputName

Input

Pointer to the dynamic input name in desc.

Returns

0 on success; else, failure. For details, see aclError.