aclSetTensorDynamicInput

Applicability

Product

Supported

Atlas 350 Accelerator Card

Atlas A3 training product/Atlas A3 inference product

Atlas A2 training product/Atlas A2 inference product

Atlas 200I/500 A2 inference product

Atlas inference product

Atlas training product

Function Usage

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

1
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.