Description: Performs Real Fast Fourier Transform (RFFT) on the input tensor
[object Object], and outputs a complex tensor containing non-negative frequencies.Formula:
Example: If
[object Object]is {1, 2, 3, 4}, then[object Object]= {10, 0, -2, 2, -2, 0} = {10 + 0j, -2 + 2j, -2 + 0j} (customized).
Each operator has calls. First, [object Object] is called to obtain the workspace size required for computation and the executor that contains the operator computation process. Then, [object Object] is called to perform computation.
[object Object][object Object]
Parameters
[object Object](aclTensor*, compute input): input in the formula. The data type can be FLOAT, and the can be ND. The shape supports 1 to 7 dimensions.[object Object](int64_t, compute input): signal length. The data type is INT64. If the value is specified, the input will be zeroed or trimmed to this length before Rfft1D is computed. The value range of n is [1, 4096]. The maximum value of 2[object Object]n[object Object] is 262144.[object Object](int64_t, compute input): dimension. The data type is INT64. If the value is specified, RFFT applies to the specified dimension. The supported values are [-self.dim(), self.dim()-1].[object Object](int64_t, compute input): normalization mode. The data type is INT64. The value[object Object]indicates no normalization,[object Object]indicates normalization by 1/n, and[object Object]indicates normalization by 1/sqrt(n).[object Object](aclTensor*, compute output): output in the formula. The data type can be FLOAT. The can be ND.[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:
[object Object]: status code. For details, see .[object Object]
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[object Object].[object Object](aclOpExecutor*, input): operator executor, containing the operator computation process.[object Object](aclrtStream, input): stream for executing the task.
Returns:
- Deterministic computing:
[object Object]defaults to a deterministic implementation.
The following example is for reference only. For details, see .
[object Object]