- API description: Applies the nearest neighbor interpolation algorithm to upsample the input signal composed of several input channels.
- Formula:
- Core algorithm logic:
- Scale the destination image to the same size as the source image.
- For the points of the scaled destination image, calculate the nearest points of the source image, and copy the values of the latter to the former.
- Calculation logic:
- Core algorithm logic:
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 inference products[object Object]:
The data types of the input parameter
[object Object]and output parameter[object Object]do not support BFLOAT16, DOUBLE, or UINT8.[object Object]Atlas training products[object Object]:
The data types of the input parameter
[object Object]and output parameter[object Object]do not support BFLOAT16 or UINT8.[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 types of the input parameter
[object Object]and output parameter[object Object]do not support UINT8.
Returns:
aclnnStatus: status code. For details, see .
The first-phase API implements input parameter verification. The following errors may be thrown.
[object Object]
- Deterministic computing:
- aclnnUpsampleNearest3d defaults to a deterministic implementation.
The following example is for reference only. For details, see .