Each operator has calls. First, aclnnUpsampleNearest1dBackwardGetWorkspaceSize is called to obtain the input parameters and compute the required workspace size based on the process. Then, aclnnUpsampleNearest1dBackward is called to perform computation.
[object Object]
[object Object]
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
[object Object]and output parameter[object Object]must be FLOAT16.
- [object Object]Atlas inference products[object Object] and [object Object]Atlas training products[object Object]: The data types of the input parameter
Returns:
aclnnStatus: status code. For details, see .
The first-phase API implements input parameter verification. The following errors may be thrown.
[object Object]
- Either outputSize or scales must be used.
- If the value of scales is less than or equal to 0, the value of outputSize is used.
- If the value of scales is greater than 0, the value of scales is used, and .
- Deterministic computing:
- aclnnUpsampleNearest1dBackward defaults to a deterministic implementation.
The following example is for reference only. For details, see .
[object Object]