[object Object]

[object Object][object Object]undefined
[object Object]
  • Function: Fills the selfRef tensor with all zeros.

  • Formulas:

    selfRefi=0{selfRef}_{i} = 0
  • Example:

    [object Object]
[object Object]

Each operator has calls. First, aclnnInplaceZeroGetWorkspaceSize is called to obtain the input parameters and compute the required workspace size based on the process. Then, aclnnInplaceZero is called to perform computation.

[object Object]
[object Object]
[object Object]
  • Parameters

    [object Object]
  • For [object Object]Atlas inference products[object Object] and [object Object]Atlas training products[object Object], the supported data types are INT8, INT32, INT64, UINT8, FLOAT16, FLOAT32, BOOL, DOUBLE, INT16, UINT16, COMPLEX128, and COMPLEX64.

  • For [object Object]Atlas A2 training products/Atlas A2 inference products[object Object] and [object Object]Atlas A3 training products/Atlas A3 inference products[object Object], the supported data types are INT8, INT32, INT64, UINT8, FLOAT16, FLOAT32, BOOL, DOUBLE, INT16, UINT16, COMPLEX128, COMPLEX64 and BFLOAT16.

  • Ascend 950PR/Ascend 950DT: The data type can be INT8, INT32, INT64, UINT8, FLOAT16, FLOAT32, BOOL, DOUBLE, INT16, UINT16, COMPLEX128, COMPLEX64, BFLOAT16, FLOAT8_E5M2, FLOAT8_E4M3FN, HIFLOAT8, FLOAT4_E1M2 or FLOAT4_E2M1.

  • Return Value

    [object Object]: status code. For details, see .

    The first-phase API implements input parameter validation. The following error codes may be returned.

    [object Object]
[object Object]
  • Parameters

    [object Object]
  • Return value

    [object Object]: status code. For details, see .

[object Object]
  • Deterministic computation:
    • The default deterministic implementation of aclnnInplaceZero is used.
[object Object]

The following example is for reference only. For details, see .

[object Object]