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 gradOut 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, [object Object] is called to obtain the input parameters and compute the required workspace size based on the process. Then, [object Object] is called to perform computation.
Parameters
[object Object][object Object]Atlas training products[object Object]:
- The data types of gradOut and gradInput do not support BFLOAT16.
- The data formats of gradOut and gradInput do not support NHWC.
[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 data formats of gradOut and gradInput do not support NHWC.
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 inputSize, outputSize, scalesH, and scalesW parameters must meet the following requirements:
Deterministic computation:
aclnnUpsampleBicubic2dBackward defaults to a non-deterministic implementation. You can call aclrtCtxSetSysParamOpt to enable deterministic computing. Deterministic computation is not supported when the following conditions are met:
- > 130000
- / >=50
- / >=50 && * * > * 0.5
- / < 0.02 && / < 0.02 && * * > * 10000
The following example is for reference only. For details, see .