API description: Performs backpropagation of . If the shape of the input tensor is (N, C, H, W), then the shape of the output tensor is (N, C, inputSize[2], inputSize[3]).
Formula: For a two-dimensional interpolation point , the interpolation may be represented as:
The values are as follows:
- i and j are index variables of .
- is the pixel value of gradOutput in .
- is the weight of the bicubic anti-aliasing interpolation, which is defined as follows:
The values are as follows:
Each operator has calls. First, aclnnUpsampleBicubic2dAAGradGetWorkspaceSize is called to obtain the workspace size required for computation and the executor that contains the operator computation process. Then, aclnnUpsampleBicubic2dAAGrad is called to perform computation.
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]
The shape constraints of gradOutput and out are as follows:
The value of each dimension is less than or equal to 2^20.
The N and C axes of out must be the same as those of gradOutput.
The memory usage must meet the following requirements:
The values are as follows:
- N indicates the N axis of the input and output.
- C indicates the C axis of the input and output.
N * C * gradOutput_H < 2^31
[object Object]Atlas A3 training products/Atlas A3 inference products[object Object] and [object Object]Atlas A2 training products/Atlas A2 inference products[object Object]:
In the input data scaling scenario, the scaling factor must be less than or equal to 50. That is:
The inputSize, outputSize, scalesH, and scalesW parameters must meet the following constraints:
Deterministic computation:
- [object Object]Atlas A3 training products/Atlas A3 inference products[object Object] and [object Object]Atlas A2 training products/Atlas A2 inference products[object Object]:
[object Object]defaults to a deterministic implementation. - Ascend 950PR/Ascend 950DT:
[object Object]defaults to non-deterministic implementation. You can call[object Object]to enable deterministic computation.
- [object Object]Atlas A3 training products/Atlas A3 inference products[object Object] and [object Object]Atlas A2 training products/Atlas A2 inference products[object Object]:
The following example is for reference only. For details, see .