Sets the workspace parameters of an operator in dynamic shape scenarios. This API is optional. Use it as required.
aclError aclopSetKernelWorkspaceSizes(aclopKernelDesc *kernelDesc, int numWorkspaces, size_t *workspaceSizes)
Parameter |
Input/Output |
Description |
|---|---|---|
kernelDesc |
Input |
Kernel description buffer, which is a pointer to the aclopKernelDesc type. typedef struct aclopKernelDesc aclopKernelDesc |
numWorkspaces |
Input |
Number of workspaces. |
workspaceSizes |
Input |
Pointer to the address of the array of workspace sizes. |
0 on success; else, failure.