Each operator has calls. First, aclnnUpsampleNearest2dBackwardGetWorkspaceSize is called to obtain the input parameters and compute the required workspace size based on the process. Then, aclnnUpsampleNearest2dBackward is called to perform computation.
Parameters
[object Object][object Object]Atlas inference products[object Object] and [object Object]Atlas training products[object Object]:
The data types of the input parameter gradOut and output parameter gradInput support only FLOAT16.
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 restrictions:
Deterministic computation:
- aclnnUpsampleNearest2dBackward defaults to a deterministic implementation.
The following example is for reference only. For details, see .