Identifies the dynamic inputs after a tensor description is created by the aclCreateTensorDesc call. 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. This API is synchronous.
aclError aclSetTensorDynamicInput(aclTensorDesc *desc, const char *dynamicInputName)
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. |
0 on success; else, failure.