CARVIEW |
Select Language
HTTP/2 200
date: Tue, 29 Jul 2025 02:11:16 GMT
content-type: text/html; charset=utf-8
vary: X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, X-Requested-With,Accept-Encoding, Accept, X-Requested-With
x-repository-download: git clone https://github.com/PaddlePaddle/Paddle.git
etag: W/"69fe7539a4aaa1e85e44e74013223354"
cache-control: max-age=0, private, must-revalidate
strict-transport-security: max-age=31536000; includeSubdomains; preload
x-frame-options: deny
x-content-type-options: nosniff
x-xss-protection: 0
referrer-policy: no-referrer-when-downgrade
content-security-policy: default-src 'none'; base-uri 'self'; child-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com *.rel.tunnels.api.visualstudio.com wss://*.rel.tunnels.api.visualstudio.com objects-origin.githubusercontent.com copilot-proxy.githubusercontent.com proxy.individual.githubcopilot.com proxy.business.githubcopilot.com proxy.enterprise.githubcopilot.com *.actions.githubusercontent.com wss://*.actions.githubusercontent.com productionresultssa0.blob.core.windows.net/ productionresultssa1.blob.core.windows.net/ productionresultssa2.blob.core.windows.net/ productionresultssa3.blob.core.windows.net/ productionresultssa4.blob.core.windows.net/ productionresultssa5.blob.core.windows.net/ productionresultssa6.blob.core.windows.net/ productionresultssa7.blob.core.windows.net/ productionresultssa8.blob.core.windows.net/ productionresultssa9.blob.core.windows.net/ productionresultssa10.blob.core.windows.net/ productionresultssa11.blob.core.windows.net/ productionresultssa12.blob.core.windows.net/ productionresultssa13.blob.core.windows.net/ productionresultssa14.blob.core.windows.net/ productionresultssa15.blob.core.windows.net/ productionresultssa16.blob.core.windows.net/ productionresultssa17.blob.core.windows.net/ productionresultssa18.blob.core.windows.net/ productionresultssa19.blob.core.windows.net/ github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com api.githubcopilot.com api.individual.githubcopilot.com api.business.githubcopilot.com api.enterprise.githubcopilot.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com copilot-workspace.githubnext.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src viewscreen.githubusercontent.com notebooks.githubusercontent.com; img-src 'self' data: blob: github.githubassets.com media.githubusercontent.com camo.githubusercontent.com identicons.github.com avatars.githubusercontent.com private-avatars.githubusercontent.com github-cloud.s3.amazonaws.com objects.githubusercontent.com release-assets.githubusercontent.com secured-user-images.githubusercontent.com/ user-images.githubusercontent.com/ private-user-images.githubusercontent.com opengraph.githubassets.com copilotprodattachments.blob.core.windows.net/github-production-copilot-attachments/ github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com objects-origin.githubusercontent.com *.githubusercontent.com; manifest-src 'self'; media-src github.com user-images.githubusercontent.com/ secured-user-images.githubusercontent.com/ private-user-images.githubusercontent.com github-production-user-asset-6210df.s3.amazonaws.com gist.github.com; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; upgrade-insecure-requests; worker-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/
server: github.com
content-encoding: gzip
accept-ranges: bytes
set-cookie: _gh_sess=uaNsR6p%2BMM4bSIi58GQ2tyLemlZywwUJoroUoLgTN7eFt5UwWe1jarFWaRPUgq6AfPklOgZ9018SoZH%2FaKAjp2cCGOTPNDTj4EvdzHs6lssRrXClCyChRKt3NRmFgB2%2B0pwmj8%2BAlf3%2FDm18eVs3Pt5G0oQC4vbIheIEQpZAxHQHjQGo%2BzgxGT1ErOfabvKta8Q3a7AN3t%2FdeEe8jPKJFE%2BbwDfwWYXeO2qazMil%2BPFtQeyseV0wvIFGxfc6zEIt5gvewiIuKbHKgngjZBQ9yg%3D%3D--d6CKWt6TTqbWLe8s--0QoFPqZ8yRihSO5BjpCUSg%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.1019353074.1753755075; Path=/; Domain=github.com; Expires=Wed, 29 Jul 2026 02:11:15 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Wed, 29 Jul 2026 02:11:15 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: C318:5844B:1C15E2:29A44A:68882DC3
Unify fused_dot_product_attention with scaled_dot_product_attention (… · PaddlePaddle/Paddle@47461b5 · GitHub
Copy file name to clipboardExpand all lines: python/paddle/incubate/nn/functional/fused_dot_product_attention.py
Copy file name to clipboardExpand all lines: python/paddle/nn/functional/flash_attention.py
Copy file name to clipboardExpand all lines: test/legacy_test/test_fused_dot_product_attention_op.py
Copy file name to clipboardExpand all lines: test/legacy_test/test_fused_dot_product_attention_op_static.py
Skip to content
Navigation Menu
{{ message }}
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Commit 47461b5
Unify fused_dot_product_attention with scaled_dot_product_attention (#65507)
* update cudnn flash attention
fix error
fix pir pass
fix ci
add more ut
minor changes
remove workspace_opt env
minor change
update api doc
* polish
* fix static test
* revert graph_pattern_detector.cc modify
---------
Co-authored-by: Shijie Wang <jaywan@nvidia.com>1 parent d8d4d73 commit 47461b5Copy full SHA for 47461b5
File tree
Expand file treeCollapse file tree
4 files changed
+72
-53
lines changedFilter options
- python/paddle
- incubate/nn/functional
- nn/functional
- test/legacy_test
Expand file treeCollapse file tree
4 files changed
+72
-53
lines changedpython/paddle/incubate/nn/functional/fused_dot_product_attention.py
Copy file name to clipboardExpand all lines: python/paddle/incubate/nn/functional/fused_dot_product_attention.py+51-45Lines changed: 51 additions & 45 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
15 |
| - | |
16 |
| - | |
| 15 | + | |
17 | 16 |
| |
18 | 17 |
| |
19 | 18 |
| |
| |||
57 | 56 |
| |
58 | 57 |
| |
59 | 58 |
| |
60 |
| - | |
61 |
| - | |
62 |
| - | |
63 |
| - | |
64 | 59 |
| |
65 | 60 |
| |
66 | 61 |
| |
| |||
78 | 73 |
| |
79 | 74 |
| |
80 | 75 |
| |
81 |
| - | |
| 76 | + | |
82 | 77 |
| |
83 | 78 |
| |
84 | 79 |
| |
| |||
130 | 125 |
| |
131 | 126 |
| |
132 | 127 |
| |
133 |
| - | |
134 |
| - | |
135 |
| - | |
136 |
| - | |
137 |
| - | |
138 |
| - | |
139 |
| - | |
140 |
| - | |
141 |
| - | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
142 | 137 |
| |
143 | 138 |
| |
144 | 139 |
| |
145 | 140 |
| |
146 | 141 |
| |
147 | 142 |
| |
148 |
| - | |
149 |
| - | |
150 |
| - | |
151 |
| - | |
152 |
| - | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
153 | 156 |
| |
154 |
| - | |
| 157 | + | |
155 | 158 |
| |
| 159 | + | |
156 | 160 |
| |
157 |
| - | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
158 | 164 |
| |
159 | 165 |
| |
160 | 166 |
| |
| |||
167 | 173 |
| |
168 | 174 |
| |
169 | 175 |
| |
170 |
| - | |
171 |
| - | |
172 | 176 |
| |
173 | 177 |
| |
174 |
| - | |
175 |
| - | |
176 |
| - | |
177 | 178 |
| |
178 |
| - | |
| 179 | + | |
179 | 180 |
| |
180 | 181 |
| |
181 |
| - | |
| 182 | + | |
182 | 183 |
| |
183 | 184 |
| |
184 | 185 |
| |
185 | 186 |
| |
186 | 187 |
| |
187 | 188 |
| |
188 |
| - | |
| 189 | + | |
189 | 190 |
| |
190 |
| - | |
191 |
| - | |
| 191 | + | |
| 192 | + | |
192 | 193 |
| |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
193 | 199 |
| |
194 |
| - | |
195 |
| - | |
196 |
| - | |
197 |
| - | |
198 |
| - | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
199 | 205 |
| |
200 | 206 |
| |
201 | 207 |
| |
202 |
| - | |
| 208 | + | |
203 | 209 |
| |
204 | 210 |
| |
205 | 211 |
| |
206 | 212 |
| |
207 | 213 |
| |
208 | 214 |
| |
209 | 215 |
| |
210 |
| - | |
| 216 | + | |
211 | 217 |
| |
212 | 218 |
| |
213 | 219 |
| |
214 | 220 |
| |
215 | 221 |
| |
216 |
| - | |
| 222 | + | |
217 | 223 |
| |
218 | 224 |
| |
219 | 225 |
| |
220 | 226 |
| |
221 | 227 |
| |
222 | 228 |
| |
223 | 229 |
| |
224 |
| - | |
225 |
| - | |
226 |
| - | |
227 |
| - | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
228 | 234 |
| |
229 | 235 |
| |
230 | 236 |
| |
|
python/paddle/nn/functional/flash_attention.py
Copy file name to clipboardExpand all lines: python/paddle/nn/functional/flash_attention.py+3-3Lines changed: 3 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1016 | 1016 |
| |
1017 | 1017 |
| |
1018 | 1018 |
| |
1019 |
| - | |
| 1019 | + | |
1020 | 1020 |
| |
1021 | 1021 |
| |
1022 | 1022 |
| |
1023 |
| - | |
| 1023 | + | |
1024 | 1024 |
| |
1025 | 1025 |
| |
1026 | 1026 |
| |
1027 |
| - | |
| 1027 | + | |
1028 | 1028 |
| |
1029 | 1029 |
| |
1030 | 1030 |
| |
|
test/legacy_test/test_fused_dot_product_attention_op.py
Copy file name to clipboardExpand all lines: test/legacy_test/test_fused_dot_product_attention_op.py+1-2Lines changed: 1 addition & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
197 | 197 |
| |
198 | 198 |
| |
199 | 199 |
| |
200 |
| - | |
201 | 200 |
| |
202 | 201 |
| |
203 | 202 |
| |
204 |
| - | |
| 203 | + | |
205 | 204 |
| |
206 | 205 |
| |
207 | 206 |
| |
|
test/legacy_test/test_fused_dot_product_attention_op_static.py
Copy file name to clipboardExpand all lines: test/legacy_test/test_fused_dot_product_attention_op_static.py+17-3Lines changed: 17 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
71 | 71 |
| |
72 | 72 |
| |
73 | 73 |
| |
74 |
| - | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
75 | 88 |
| |
76 | 89 |
| |
77 | 90 |
| |
| |||
90 | 103 |
| |
91 | 104 |
| |
92 | 105 |
| |
93 |
| - | |
| 106 | + | |
94 | 107 |
| |
95 | 108 |
| |
96 | 109 |
| |
| |||
102 | 115 |
| |
103 | 116 |
| |
104 | 117 |
| |
105 |
| - | |
| 118 | + | |
106 | 119 |
| |
107 | 120 |
| |
108 | 121 |
| |
| |||
143 | 156 |
| |
144 | 157 |
| |
145 | 158 |
| |
| 159 | + | |
146 | 160 |
| |
147 | 161 |
| |
148 | 162 |
| |
|
You can’t perform that action at this time.
0 commit comments