aclopSetKernelWorkspaceSizes

Applicable Products

Product

Supported

Ascend 950PR/Ascend 950DT

×

Atlas A3 training products/Atlas A3 inference products

√

Atlas A2 training products/Atlas A2 inference products

√

Atlas 200I/500 A2 inference products

√

Atlas inference products

√

Atlas training products

√

Function Usage

Sets the workspace parameters of an operator in dynamic shape scenarios. This API is optional. Use it as required.

Prototype

1
aclError aclopSetKernelWorkspaceSizes(aclopKernelDesc *kernelDesc, int numWorkspaces, size_t *workspaceSizes)

Parameters

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 array address of workspace sizes

Returns

0 on success; else, failure. For details, see aclError.