CARVIEW |
Select Language
HTTP/2 200
date: Sat, 26 Jul 2025 03:54:44 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/"81fe87de32a1b851b3804751cfd9d42b"
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=Sq7JcD47elfzW1Lxh5eY8MGOyJ%2F6mVKiDzhsezezb4g8mSRzX2kSk0JXpPZmdpfsKPyHjMpkyKRlf0KzF3UBvrW2MG38vqZd%2BHhF7t0CM1afJUYwZQrMaxdR32A7ni6BdSRgHY7pdNgK17VbaCLBM0to7CiVm253o%2Fh8WTrORyi3h4H0MgV%2FC45RFTZtuQTCv%2F3YIwyYQlbRADtzCL%2FFEvS9SaUYoOW7Fv3LmIDkbAhKhfaON0vP8bAM7LnHmRbPykk2YpbkpEhgJGI5FhKAhw%3D%3D--VX4zHOPqSCtdAApn--X%2BHoCmTWCwLawM%2FkJLNOAA%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.19172182.1753502083; Path=/; Domain=github.com; Expires=Sun, 26 Jul 2026 03:54:43 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Sun, 26 Jul 2026 03:54:43 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: A636:1AFF47:12A656:1C80C7:68845183
【pir】add array_write/read vjp and api (#60338) · PaddlePaddle/Paddle@5937fb0 · GitHub
Copy file name to clipboardExpand all lines: paddle/fluid/pir/dialect/op_generator/op_build_gen.py
Copy file name to clipboardExpand all lines: paddle/fluid/pir/dialect/operator/ir/manual_op.cc
Copy file name to clipboardExpand all lines: paddle/fluid/pir/dialect/operator/ir/manual_op.h
Copy file name to clipboardExpand all lines: paddle/fluid/pir/dialect/operator/ir/manual_op_vjp.cc
Copy file name to clipboardExpand all lines: paddle/fluid/pybind/eager_utils.cc
Copy file name to clipboardExpand all lines: paddle/fluid/pybind/eager_utils.h
Copy file name to clipboardExpand all lines: paddle/fluid/pybind/manual_static_op_function.h
Copy file name to clipboardExpand all lines: python/paddle/tensor/array.py
Copy file name to clipboardExpand all lines: test/ir/pir/test_while_api.py
Copy file name to clipboardExpand all lines: test/legacy_test/test_while_loop_op.py
Skip to content
Navigation Menu
{{ message }}
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Commit 5937fb0
【pir】add array_write/read vjp and api (#60338)
* optimize backward
* [PIR] add vjp interface for while op
* [PIR] fix ci error.
* modify while stopgradient
* merge
* modify while grad bug
* modify while grad op
* modify
* increment vp
* [PIR] add get_used_external_value interface for block.
* while case
* delete print
* delete print
* Update python/paddle/autograd/ir_backward.py
* [PIR] add unit_test for get_used_external_value
* modify while_loop
* code_style
* modofy ci bug
* modify while api
* modify ci
* modify array
* Update python/paddle/autograd/ir_backward.py
* Update test/legacy_test/test_cond.py
* update
---------
Co-authored-by: winter-wang <1030748926@qq.com>1 parent 0bffc43 commit 5937fb0Copy full SHA for 5937fb0
File tree
Expand file treeCollapse file tree
10 files changed
+173
-27
lines changedFilter options
- paddle/fluid
- pir/dialect
- op_generator
- operator/ir
- pybind
- python/paddle/tensor
- test
- ir/pir
- legacy_test
Expand file treeCollapse file tree
10 files changed
+173
-27
lines changedpaddle/fluid/pir/dialect/op_generator/op_build_gen.py
Copy file name to clipboardExpand all lines: paddle/fluid/pir/dialect/op_generator/op_build_gen.py+3-3Lines changed: 3 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
386 | 386 |
| |
387 | 387 |
| |
388 | 388 |
| |
389 |
| - | |
| 389 | + | |
390 | 390 |
| |
391 | 391 |
| |
392 | 392 |
| |
| |||
408 | 408 |
| |
409 | 409 |
| |
410 | 410 |
| |
411 |
| - | |
| 411 | + | |
412 | 412 |
| |
413 | 413 |
| |
414 | 414 |
| |
| |||
428 | 428 |
| |
429 | 429 |
| |
430 | 430 |
| |
431 |
| - | |
| 431 | + | |
432 | 432 |
| |
433 | 433 |
| |
434 | 434 |
| |
|
paddle/fluid/pir/dialect/operator/ir/manual_op.cc
Copy file name to clipboardExpand all lines: paddle/fluid/pir/dialect/operator/ir/manual_op.cc+2-1Lines changed: 2 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1340 | 1340 |
| |
1341 | 1341 |
| |
1342 | 1342 |
| |
1343 |
| - | |
| 1343 | + | |
| 1344 | + | |
1344 | 1345 |
| |
1345 | 1346 |
| |
1346 | 1347 |
| |
|
paddle/fluid/pir/dialect/operator/ir/manual_op.h
Copy file name to clipboardExpand all lines: paddle/fluid/pir/dialect/operator/ir/manual_op.h+17-2Lines changed: 17 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
215 | 215 |
| |
216 | 216 |
| |
217 | 217 |
| |
218 |
| - | |
219 |
| - | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
220 | 222 |
| |
221 | 223 |
| |
222 | 224 |
| |
| |||
236 | 238 |
| |
237 | 239 |
| |
238 | 240 |
| |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
239 | 247 |
| |
240 | 248 |
| |
241 | 249 |
| |
242 | 250 |
| |
| 251 | + | |
243 | 252 |
| |
244 | 253 |
| |
245 | 254 |
| |
| |||
259 | 268 |
| |
260 | 269 |
| |
261 | 270 |
| |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
262 | 277 |
| |
263 | 278 |
| |
264 | 279 |
| |
|
paddle/fluid/pir/dialect/operator/ir/manual_op_vjp.cc
Copy file name to clipboardExpand all lines: paddle/fluid/pir/dialect/operator/ir/manual_op_vjp.cc+74-1Lines changed: 74 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
170 | 170 |
| |
171 | 171 |
| |
172 | 172 |
| |
173 |
| - | |
| 173 | + | |
174 | 174 |
| |
175 | 175 |
| |
176 | 176 |
| |
| |||
192 | 192 |
| |
193 | 193 |
| |
194 | 194 |
| |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
195 | 268 |
| |
196 | 269 |
|
paddle/fluid/pybind/eager_utils.cc
Copy file name to clipboardExpand all lines: paddle/fluid/pybind/eager_utils.cc+39Lines changed: 39 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
188 | 188 |
| |
189 | 189 |
| |
190 | 190 |
| |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
191 | 230 |
| |
192 | 231 |
| |
193 | 232 |
| |
|
paddle/fluid/pybind/eager_utils.h
Copy file name to clipboardExpand all lines: paddle/fluid/pybind/eager_utils.h+2Lines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
72 | 72 |
| |
73 | 73 |
| |
74 | 74 |
| |
| 75 | + | |
75 | 76 |
| |
| 77 | + | |
76 | 78 |
| |
77 | 79 |
| |
78 | 80 |
| |
|
paddle/fluid/pybind/manual_static_op_function.h
Copy file name to clipboardExpand all lines: paddle/fluid/pybind/manual_static_op_function.h+2-2Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
181 | 181 |
| |
182 | 182 |
| |
183 | 183 |
| |
184 |
| - | |
| 184 | + | |
185 | 185 |
| |
186 | 186 |
| |
187 | 187 |
| |
| |||
215 | 215 |
| |
216 | 216 |
| |
217 | 217 |
| |
218 |
| - | |
| 218 | + | |
219 | 219 |
| |
220 | 220 |
| |
221 | 221 |
| |
|
python/paddle/tensor/array.py
Copy file name to clipboardExpand all lines: python/paddle/tensor/array.py+5-5Lines changed: 5 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
56 | 56 |
| |
57 | 57 |
| |
58 | 58 |
| |
59 |
| - | |
| 59 | + | |
60 | 60 |
| |
61 | 61 |
| |
62 | 62 |
| |
| |||
137 | 137 |
| |
138 | 138 |
| |
139 | 139 |
| |
140 |
| - | |
| 140 | + | |
141 | 141 |
| |
142 | 142 |
| |
143 | 143 |
| |
| |||
219 | 219 |
| |
220 | 220 |
| |
221 | 221 |
| |
222 |
| - | |
| 222 | + | |
223 | 223 |
| |
224 | 224 |
| |
225 | 225 |
| |
226 | 226 |
| |
227 | 227 |
| |
228 |
| - | |
| 228 | + | |
229 | 229 |
| |
230 | 230 |
| |
231 | 231 |
| |
| |||
302 | 302 |
| |
303 | 303 |
| |
304 | 304 |
| |
305 |
| - | |
| 305 | + | |
306 | 306 |
| |
307 | 307 |
| |
308 | 308 |
| |
|
test/ir/pir/test_while_api.py
Copy file name to clipboardExpand all lines: test/ir/pir/test_while_api.py+10-4Lines changed: 10 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
62 | 62 |
| |
63 | 63 |
| |
64 | 64 |
| |
65 |
| - | |
66 | 65 |
| |
67 |
| - | |
68 | 66 |
| |
69 | 67 |
| |
70 | 68 |
| |
71 | 69 |
| |
72 | 70 |
| |
73 | 71 |
| |
74 |
| - | |
75 | 72 |
| |
76 | 73 |
| |
77 | 74 |
| |
| |||
175 | 172 |
| |
176 | 173 |
| |
177 | 174 |
| |
178 |
| - | |
179 | 175 |
| |
180 | 176 |
| |
181 | 177 |
| |
| |||
189 | 185 |
| |
190 | 186 |
| |
191 | 187 |
| |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
192 | 198 |
| |
193 | 199 |
| |
194 | 200 |
| |
|
test/legacy_test/test_while_loop_op.py
Copy file name to clipboardExpand all lines: test/legacy_test/test_while_loop_op.py+19-9Lines changed: 19 additions & 9 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
374 | 374 |
| |
375 | 375 |
| |
376 | 376 |
| |
377 |
| - | |
| 377 | + | |
378 | 378 |
| |
379 | 379 |
| |
380 | 380 |
| |
| |||
411 | 411 |
| |
412 | 412 |
| |
413 | 413 |
| |
| 414 | + | |
414 | 415 |
| |
415 | 416 |
| |
416 | 417 |
| |
| |||
436 | 437 |
| |
437 | 438 |
| |
438 | 439 |
| |
439 |
| - | |
| 440 | + | |
440 | 441 |
| |
441 |
| - | |
442 |
| - | |
| 442 | + | |
443 | 443 |
| |
444 | 444 |
| |
445 | 445 |
| |
| |||
453 | 453 |
| |
454 | 454 |
| |
455 | 455 |
| |
456 |
| - | |
457 |
| - | |
458 |
| - | |
459 |
| - | |
460 |
| - | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
461 | 471 |
| |
462 | 472 |
| |
463 | 473 |
| |
|
You can’t perform that action at this time.
0 commit comments