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]
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]
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 restrictions:
Deterministic computation:
- The default deterministic implementation of aclnnUpsampleNearestExact2dBackward is used.
The following example is for reference only. For details, see .
[object Object]