Function: kernel_args_append_place_holder

Applicable Products

Product

Supported (√/x)

Ascend 950PR/Ascend 950DT

√

Atlas A3 training products/Atlas A3 inference products

√

Atlas A2 training products/Atlas A2 inference products

√

Atlas training products

√

Atlas inference products

√

Atlas 200I/500 A2 inference products

√

Description

Sets a placeholder for a placeholder parameter. The return value is the param_handle placeholder.

If there are multiple parameters in the parameter list, append the parameters in sequence. After all parameters are appended, you can call the acl.rt.kernel_args_get_place_holder_buffer API to obtain the memory address to which the param_handle placeholder points.

Prototype

  • C Prototype
    1
    aclError aclrtKernelArgsAppendPlaceHolder(aclrtArgsHandle argsHandle, aclrtParamHandle *paramHandle)
    
  • Python Function
    1
    param_handle, ret = acl.rt.kernel_args_append_place_holder(args_handle)
    

Parameters

Parameter

Description

args_handle

Int, handle of the parameter list.

Return Values

Return Value

Description

param_handle

Int, parameter handle.

ret

Int, 0 on success; else, failure.