[object Object]

[object Object][object Object]undefined
[object Object]
  • Description: Updates the input tensor list in place, and sets each tensor to 0.

  • Formula:

    x=[x0,x1,...xn1]x = [{x_0}, {x_1}, ... {x_{n-1}}]\\ xi=0(i=0,1,...n1)x_i = 0 (i=0,1,...n-1)
[object Object]

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

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

    [object Object]
  • Returns

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

    The first-phase API implements input parameter verification. The following errors may be thrown.

    [object Object]
[object Object]
  • Parameters

    [object Object]
  • Returns

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

[object Object]
  • Deterministic computation:
    • aclnnForeachZeroInplace defaults to a deterministic implementation.
[object Object]

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

[object Object]