CARVIEW |
Select Language
HTTP/2 200
date: Wed, 30 Jul 2025 04:02:45 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/"be039d22e2f7454701e1c0fb69af52c2"
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=8fCTk703MiVEGKzaLwhwvHekZUOHPn0QqPpUWuyhioJZ7aySxoREoYL4viXPbVFqEXYKZB28Bb9BBRxbEbXgzBTEEfIblmwducj3GXrm4OZpuZHRkzDDB%2FyPdMjDPiAkFW3EAKWoswWhOarZvcUwiFu3kBnkYKLut8xLogyq2WZYxAXi2DWE2GdArjqROhnQksqiOyJNnLMf8y7xWzSZpdP%2FgSpXzKf2hfzWzt7n2Q8AyVhmOyo9L%2BdXue%2FfkWPlGycdj3SU0wh1CzZDVNer0A%3D%3D--d1jxMryG3qXUb2d%2B--D23hKO9lkOfFRKuUrJM%2Flg%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.337821449.1753848164; Path=/; Domain=github.com; Expires=Thu, 30 Jul 2026 04:02:44 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Thu, 30 Jul 2026 04:02:44 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: 8DD8:2E4773:23AB42:33AA4E:68899964
【pir】 modify array_write and array_read vjp , add a simple while with… · PaddlePaddle/Paddle@1646a83 · GitHub
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_vjp.cc
Copy file name to clipboardExpand all lines: python/paddle/autograd/ir_backward.py
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
Skip to content
Navigation Menu
{{ message }}
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Commit 1646a83
【pir】 modify array_write and array_read vjp , add a simple while with array_write (#60575)
* 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
* modify array_write grad info
* merge
* add_n and createarraylike
* conflict
* modify array_write vjp
* modify array_write vjp
* Update paddle/fluid/pybind/manual_static_op_function.h
* modify array_write vjp
* modify ci bug
* modify
* modify
* Update test/legacy_test/test_while_loop_op.py
* modify inplace array_read
* Update test/legacy_test/test_while_op.py
* Update test/ir/pir/test_while_api.py
---------
Co-authored-by: winter-wang <1030748926@qq.com>1 parent be98374 commit 1646a83Copy full SHA for 1646a83
File tree
Expand file treeCollapse file tree
8 files changed
+242
-72
lines changedFilter options
- paddle/fluid/pir/dialect/operator/ir
- python/paddle
- autograd
- tensor
- test
- ir/pir
- legacy_test
Expand file treeCollapse file tree
8 files changed
+242
-72
lines changedpaddle/fluid/pir/dialect/operator/ir/manual_op.cc
Copy file name to clipboardExpand all lines: paddle/fluid/pir/dialect/operator/ir/manual_op.cc+1-1Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1501 | 1501 |
| |
1502 | 1502 |
| |
1503 | 1503 |
| |
1504 |
| - | |
| 1504 | + | |
1505 | 1505 |
| |
1506 | 1506 |
| |
1507 | 1507 |
| |
|
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+20-20Lines changed: 20 additions & 20 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
196 | 196 |
| |
197 | 197 |
| |
198 | 198 |
| |
199 |
| - | |
| 199 | + | |
200 | 200 |
| |
201 | 201 |
| |
202 | 202 |
| |
| |||
212 | 212 |
| |
213 | 213 |
| |
214 | 214 |
| |
215 |
| - | |
| 215 | + | |
216 | 216 |
| |
217 | 217 |
| |
218 | 218 |
| |
219 | 219 |
| |
220 | 220 |
| |
221 | 221 |
| |
222 |
| - | |
223 |
| - | |
224 |
| - | |
225 |
| - | |
226 |
| - | |
227 |
| - | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
228 | 230 |
| |
229 | 231 |
| |
230 | 232 |
| |
| |||
247 | 249 |
| |
248 | 250 |
| |
249 | 251 |
| |
250 |
| - | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
251 | 255 |
| |
252 | 256 |
| |
253 |
| - | |
| 257 | + | |
254 | 258 |
| |
255 | 259 |
| |
256 | 260 |
| |
257 | 261 |
| |
258 | 262 |
| |
259 | 263 |
| |
260 |
| - | |
261 |
| - | |
262 |
| - | |
263 |
| - | |
264 |
| - | |
265 |
| - | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
266 | 269 |
| |
267 |
| - | |
268 |
| - | |
269 |
| - | |
270 |
| - | |
| 270 | + | |
271 | 271 |
| |
272 | 272 |
| |
273 | 273 |
| |
|
python/paddle/autograd/ir_backward.py
Copy file name to clipboardExpand all lines: python/paddle/autograd/ir_backward.py+134-43Lines changed: 134 additions & 43 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
63 | 63 |
| |
64 | 64 |
| |
65 | 65 |
| |
66 |
| - | |
67 |
| - | |
68 |
| - | |
69 |
| - | |
70 |
| - | |
71 |
| - | |
72 |
| - | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
73 | 82 |
| |
74 | 83 |
| |
75 | 84 |
| |
76 |
| - | |
| 85 | + | |
77 | 86 |
| |
78 | 87 |
| |
79 | 88 |
| |
| |||
367 | 376 |
| |
368 | 377 |
| |
369 | 378 |
| |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
370 | 389 |
| |
371 | 390 |
| |
372 | 391 |
| |
| |||
425 | 444 |
| |
426 | 445 |
| |
427 | 446 |
| |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
428 | 456 |
| |
429 | 457 |
| |
430 | 458 |
| |
431 | 459 |
| |
432 |
| - | |
433 |
| - | |
434 |
| - | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
435 | 469 |
| |
436 | 470 |
| |
437 | 471 |
| |
| |||
446 | 480 |
| |
447 | 481 |
| |
448 | 482 |
| |
449 |
| - | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
450 | 489 |
| |
451 | 490 |
| |
452 | 491 |
| |
| |||
496 | 535 |
| |
497 | 536 |
| |
498 | 537 |
| |
499 |
| - | |
500 |
| - | |
501 |
| - | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
502 | 571 |
| |
503 | 572 |
| |
504 | 573 |
| |
| |||
692 | 761 |
| |
693 | 762 |
| |
694 | 763 |
| |
695 |
| - | |
| 764 | + | |
| 765 | + | |
| 766 | + | |
| 767 | + | |
| 768 | + | |
696 | 769 |
| |
697 | 770 |
| |
698 | 771 |
| |
| |||
743 | 816 |
| |
744 | 817 |
| |
745 | 818 |
| |
746 |
| - | |
| 819 | + | |
| 820 | + | |
| 821 | + | |
747 | 822 |
| |
748 | 823 |
| |
749 | 824 |
| |
| |||
787 | 862 |
| |
788 | 863 |
| |
789 | 864 |
| |
790 |
| - | |
791 |
| - | |
792 |
| - | |
| 865 | + | |
| 866 | + | |
| 867 | + | |
| 868 | + | |
| 869 | + | |
| 870 | + | |
| 871 | + | |
| 872 | + | |
| 873 | + | |
| 874 | + | |
| 875 | + | |
| 876 | + | |
793 | 877 |
| |
| 878 | + | |
| 879 | + | |
| 880 | + | |
794 | 881 |
| |
795 |
| - | |
796 |
| - | |
797 |
| - | |
798 |
| - | |
| 882 | + | |
| 883 | + | |
| 884 | + | |
| 885 | + | |
799 | 886 |
| |
800 |
| - | |
801 | 887 |
| |
802 | 888 |
| |
803 | 889 |
| |
| |||
953 | 1039 |
| |
954 | 1040 |
| |
955 | 1041 |
| |
| 1042 | + | |
| 1043 | + | |
| 1044 | + | |
| 1045 | + | |
| 1046 | + | |
956 | 1047 |
| |
957 | 1048 |
| |
958 | 1049 |
| |
| |||
961 | 1052 |
| |
962 | 1053 |
| |
963 | 1054 |
| |
964 |
| - | |
965 |
| - | |
966 |
| - | |
967 |
| - | |
968 | 1055 |
| |
969 |
| - | |
970 |
| - | |
971 |
| - | |
| 1056 | + | |
| 1057 | + | |
| 1058 | + | |
| 1059 | + | |
| 1060 | + | |
| 1061 | + | |
| 1062 | + | |
972 | 1063 |
| |
973 | 1064 |
| |
974 | 1065 |
| |
| |||
993 | 1084 |
| |
994 | 1085 |
| |
995 | 1086 |
| |
| 1087 | + | |
| 1088 | + | |
| 1089 | + | |
| 1090 | + | |
996 | 1091 |
| |
997 |
| - | |
998 |
| - | |
999 |
| - | |
1000 |
| - | |
1001 |
| - | |
1002 |
| - | |
1003 |
| - | |
1004 |
| - | |
1005 |
| - | |
1006 |
| - | |
1007 |
| - | |
| 1092 | + | |
| 1093 | + | |
| 1094 | + | |
| 1095 | + | |
| 1096 | + | |
| 1097 | + | |
| 1098 | + | |
1008 | 1099 |
| |
1009 | 1100 |
| |
1010 | 1101 |
| |
|
python/paddle/tensor/array.py
Copy file name to clipboardExpand all lines: python/paddle/tensor/array.py+1-1Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
230 | 230 |
| |
231 | 231 |
| |
232 | 232 |
| |
233 |
| - | |
| 233 | + | |
234 | 234 |
| |
235 | 235 |
| |
236 | 236 |
| |
|
test/ir/pir/test_while_api.py
Copy file name to clipboardExpand all lines: test/ir/pir/test_while_api.py+2-2Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
177 | 177 |
| |
178 | 178 |
| |
179 | 179 |
| |
180 |
| - | |
| 180 | + | |
181 | 181 |
| |
182 | 182 |
| |
183 | 183 |
| |
| |||
187 | 187 |
| |
188 | 188 |
| |
189 | 189 |
| |
190 |
| - | |
| 190 | + | |
191 | 191 |
| |
192 | 192 |
| |
193 | 193 |
| |
|
You can’t perform that action at this time.
0 commit comments