[object Object]

[object Object][object Object]undefined
[object Object]
  • Description: Performs backpropagation of the MaxPool2d inverse operation (), writing element values of gradOutput in out based on indices.

  • Formula:

    out[n][c][i]=gradOutput[n][c][indices[n][c][i]]out[n][c][i] = gradOutput[n][c][indices[n][c][i]]

    out, gradOutput, and indices are obtained by reshaping the axis combined from the last two axes, that is, i[0,HW)i ∈ [0, H*W). H and W represent the last two axes.

[object Object]

Each operator has calls. First, aclnnMaxUnpool2dBackwardGetWorkspaceSize is called to obtain the workspace size required for computation and the executor that contains the operator computation process. Then, aclnnMaxUnpool2dBackward 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 validation. The following error codes may be returned.

    [object Object]
[object Object]
  • Parameters:

    [object Object]
  • Returns:

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

[object Object]
  • Deterministic compute:
    • aclnnMaxUnpool2dBackward defaults to a deterministic implementation.
[object Object]

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

[object Object]