Function: set_kernel_workspace_sizes
Applicability
Product |
Supported (√/x) |
|---|---|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
Function Usage
Sets the workspace parameters of an operator in dynamic shape scenarios.
Prototype
- C Prototype
1aclError aclopSetKernelWorkspaceSizes(aclopKernelDesc *kernelDesc, int numWorkspaces, size_t *workspaceSizes)
- Python Function
1ret = acl.op.set_kernel_workspace_sizes(kernel_desc, num_workspaces, workspace_sizes)
Parameter Description
Parameter |
Description |
|---|---|
kernel_desc |
Int, kernel description buffer, pointer address of the aclopKernelDesc type. |
num_workspaces |
Int, number of workspaces. |
workspace_sizes |
Int, address of the array of workspace sizes. |
Return Value Description
Return Value |
Description |
|---|---|
ret |
Int, error code: 0 on success; else, failure. |
Restrictions
This is an optional interface and can be selected as required.
Parent topic: Single-Operator Model Execution