API description: Resizes the input tensor size based on scales.
Formula:
Where,
- is the value of the H axis and W axis of the self shape (input).
- is the value of the H axis and W axis of the out shape (output).
- is the scales of the input self.
Each operator has calls. First, aclnnResizeGetWorkspaceSize is called to obtain the workspace size required for computation and the executor that contains the operator computation process. Then, aclnnResize is called to perform computation.
[object Object]
[object Object]
Parameters:
[object Object]- [object Object]Atlas inference products[object Object], [object Object]Atlas training products[object Object], [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
[object Object]and[object Object]do not support BFLOAT16. - The data formats of
[object Object]and[object Object]do not support NHWC.
- The data types of
- [object Object]Atlas inference products[object Object], [object Object]Atlas training products[object Object], [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]:
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:
- aclnnResize defaults to a deterministic implementation.
The following example is for reference only. For details, see .
[object Object]