aclSetTensorDynamicInput
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, AscendCL 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
The value 0 indicates success, and other values indicate failure. For details, see aclError.