API description: Resizes the input tensor size based on scales.
Formulas:
The values are as follows:
- 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 self and out do not support BFLOAT16.
- The data formats of self and out do not support NHWC.
- [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:
[object Object]: status code. For details, see .The first-phase API implements input parameter validation. The following error codes may be returned.
[object Object]
- Deterministic computation:
- aclnnResize defaults to a deterministic implementation.
The following example is for reference only. For details, see .
[object Object]