Operator function: Computes the absolute value of input and computes the Cartesian coordinates for the polar coordinates of angle, which returns a complex tensor out.
Formula:
Each operator has calls. First, aclnnPolarGetWorkspaceSize is called to obtain the workspace size required for computation and the executor that contains the operator computation process. Then, aclnnPolar is called to perform computation.
[object Object][object Object]
Parameters:
[object Object](aclTensor*, compution input): input tensor,[object Object]in the formula. The data type can be FLOAT. are supported. The can be ND. The shape cannot be greater than 8D.[object Object](aclTensor*, compution input): input tensor,[object Object]in the formula. The data type must be the same as that of input. are supported. The can be ND. The shape must be the same as that of[object Object].[object Object](aclTensor*, computation output): output tensor,[object Object]in the formula. The data type can be COMPLEX64. are supported. The can be ND. The shape must be the same as that of[object Object].[object Object](uint64_t*, output): size of the workspace to be allocated on the device.[object Object](aclOpExecutor**, output): operator executor, containing the operator computation process.
Returns:
Parameters:
[object Object](void*, input): address of the workspace to be allocated on the device.[object Object](uint64_t, input): size of the workspace to be allocated on the device, which is obtained by calling the first-phase API aclnnPolarGetWorkspaceSize.[object Object](aclOpExecutor*, input): operator executor, containing the operator computation process.[object Object](aclrtStream, input): stream for executing the task.
Returns:
- Deterministic computation:
[object Object]defaults to deterministic implementation.
The following examples are for reference only. For details, see .