Commit 11b9f5f
[Cherry-pick]FFT function enhancements and bugfixes (PaddlePaddle#36537)
* update fft api path (PaddlePaddle#36219)
* update fft api path
* add sample code for ihfft2
Co-authored-by: chenfeiyu <[email protected]>
* fix fft axis (PaddlePaddle#36321)
fix: `-1` is used when fft's axis is `0`
* use unified external error message for cufft api (PaddlePaddle#36114)
* fft: modify sample code result (PaddlePaddle#36325)
* dynamic load mkl as a fft backend when it is avaialble and requested (PaddlePaddle#36414)
* add rocm support for fft api (PaddlePaddle#36415)
* move signal apis
* move fft and signal API path (#2)
* move signal apis
* move fft.py and signal.py to paddle/, fix typos
* fix relative imports from fft.py and signal.py
* fix typos in signal.py (#3)
* move signal apis
* move fft.py and signal.py to paddle/, fix typos
* fix relative imports from fft.py and signal.py
* fix typos
* disable Cache when CUFFT_VERSION >= 10200 (#4)
* move signal apis
* move fft.py and signal.py to paddle/, fix typos
* fix relative imports from fft.py and signal.py
* fix typos
* Add LRUCache for fft plans
* add LRUCache for cuff and hipfft (#5)
* move signal apis
* move fft.py and signal.py to paddle/, fix typos
* fix relative imports from fft.py and signal.py
* fix typos
* WIP: add cache
* delete move constructor and operator= for CuFFTHandle and FFTConfig
* remove log from CuFFTHandle and FFTConfig
* add lrucache for fft rocm backend
* disable LRUCache when CUFFT_VERSION >= 10200
* disbale copy and move for hipFFTHandle; format code
Co-authored-by: Xiaoxu Chen <[email protected]>
* remove debug message of cufftHandler
* roll_op: support Tensor as input for shifts (PaddlePaddle#36727)
* fix fftshift/ifftshift on static mode
* update roll_op version
* add more test cases for fftshift/ifftshift
Co-authored-by: zhiboniu <[email protected]>
Co-authored-by: chenfeiyu <[email protected]>
Co-authored-by: LJQ❤️ <[email protected]>1 parent 96edcea commit 11b9f5f
File tree
29 files changed
+1413
-549
lines changed- cmake
- paddle/fluid
- operators
- platform
- dynload
- python/paddle
- fluid/tests/unittests
- fft
- tensor
- tools/externalError
29 files changed
+1413
-549
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
255 | 255 | | |
256 | 256 | | |
257 | 257 | | |
258 | | - | |
259 | | - | |
| 258 | + | |
| 259 | + | |
260 | 260 | | |
261 | 261 | | |
262 | 262 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
108 | | - | |
109 | | - | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
110 | 115 | | |
111 | | - | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
112 | 122 | | |
113 | 123 | | |
114 | 124 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
58 | 60 | | |
59 | 61 | | |
60 | 62 | | |
| |||
105 | 107 | | |
106 | 108 | | |
107 | 109 | | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
108 | 114 | | |
109 | 115 | | |
110 | 116 | | |
| |||
129 | 135 | | |
130 | 136 | | |
131 | 137 | | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
132 | 141 | | |
133 | 142 | | |
134 | 143 | | |
| |||
174 | 183 | | |
175 | 184 | | |
176 | 185 | | |
177 | | - | |
178 | | - | |
179 | | - | |
180 | | - | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
62 | 72 | | |
63 | 73 | | |
64 | 74 | | |
| |||
134 | 144 | | |
135 | 145 | | |
136 | 146 | | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
137 | 157 | | |
138 | 158 | | |
139 | 159 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
| 20 | + | |
19 | 21 | | |
20 | 22 | | |
21 | 23 | | |
| |||
85 | 87 | | |
86 | 88 | | |
87 | 89 | | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
88 | 100 | | |
89 | 101 | | |
90 | 102 | | |
| |||
123 | 135 | | |
124 | 136 | | |
125 | 137 | | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
126 | 143 | | |
127 | 144 | | |
128 | 145 | | |
| |||
0 commit comments