[object Object]

[object Object][object Object]undefined
[object Object]
  • API description: Performs backpropagation of .
  • Formulas:gradInput(N,C,floor(scalesH(H+0.5)),floor(scalesW(W+0.5)))+=gradOutput(N,C,H,W)gradInput(N, C, floor ( scalesH * ( H + 0.5 )), floor ( scalesW * ( W+ 0.5 ))) += gradOutput( N, C, H ,W)
[object Object]

Each operator has calls. First, aclnnUpsampleNearestExact2dBackwardGetWorkspaceSize is called to obtain the workspace size required for computation and the executor that contains the operator computation process. Then, aclnnUpsampleNearestExact2dBackward 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]
  • In the input data scaling scenario, the scaling factor must be less than or equal to 50. That is:

    outputSizeH/Heightoftheoutputshape(H)<=50outputSize_H/Height of the output shape (H) <= 50 outputSizeW/Widthoftheoutputshape(W)<=50outputSize_W/Width of the output shape (W) <= 50
  • The inputSize, outputSize, scalesH, and scalesW parameters must meet the following restrictions:

    outputSize_H=floor(inputSize_HscalesH)outputSize\_H = floor(inputSize\_H * scalesH) outputSize_W=floor(inputSize_WscalesW)outputSize\_W = floor(inputSize\_W * scalesW)
  • Deterministic computation:

    • The default deterministic implementation of aclnnUpsampleNearestExact2dBackward is used.
[object Object]

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

[object Object]