CARVIEW |
Select Language
HTTP/2 200
date: Sat, 26 Jul 2025 04:22: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/"675365ea2dd9dacdf393dfdeb42e7b1d"
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=tHCSZW8szboHX9WRNxpWMoEopniK1dKqJaRgjMlp2%2FmLZ%2FkGEyUd%2FwcJSg3Ge4Tsg3ptmgCtrm6H1hpiHMBcZCdlmJ48ZhrI97LfN%2FaDvJrdbD7O6tpBIJ%2BzTVuK%2BMJFu7dglLviKD7erYQQaK0nJ5CwM3rfvZiLX4rvsErXKCE3pY5WW%2BxJgMNwAXQPMcyC0e40BX%2FPFT2YMvxz4oRn3KsM6L%2FTvzsqH7ho%2FaS4AaYaQmBDPWRv3K1A0XObPLAFpZjDVA760CB392RTgkm8BQ%3D%3D--mFVsk%2BG5HMZoVq8M--AOMGCmbeBwJ1o8Hl9ab4LA%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.1939882785.1753503735; Path=/; Domain=github.com; Expires=Sun, 26 Jul 2026 04:22:15 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Sun, 26 Jul 2026 04:22:15 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: 89C8:15E61D:A0240:E327F:688457F7
【pir】support test_while_api case with same loop_vars and extra input … · PaddlePaddle/Paddle@d70b7ad · GitHub
Copy file name to clipboardExpand all lines: python/paddle/autograd/ir_backward.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 d70b7ad
【pir】support test_while_api case with same loop_vars and extra input (#60262)
* 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
* Update python/paddle/autograd/ir_backward.py
---------
Co-authored-by: winter-wang <1030748926@qq.com>1 parent 0c5a31c commit d70b7adCopy full SHA for d70b7ad
File tree
Expand file treeCollapse file tree
2 files changed
+130
-73
lines changedFilter options
- python/paddle/autograd
- test/ir/pir
Expand file treeCollapse file tree
2 files changed
+130
-73
lines changedpython/paddle/autograd/ir_backward.py
Copy file name to clipboardExpand all lines: python/paddle/autograd/ir_backward.py+92-72Lines changed: 92 additions & 72 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
80 | 80 |
| |
81 | 81 |
| |
82 | 82 |
| |
83 |
| - | |
| 83 | + | |
84 | 84 |
| |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
85 | 89 |
| |
86 | 90 |
| |
87 | 91 |
| |
| |||
373 | 377 |
| |
374 | 378 |
| |
375 | 379 |
| |
376 |
| - | |
| 380 | + | |
377 | 381 |
| |
378 | 382 |
| |
379 | 383 |
| |
| |||
415 | 419 |
| |
416 | 420 |
| |
417 | 421 |
| |
418 |
| - | |
419 |
| - | |
420 |
| - | |
| 422 | + | |
421 | 423 |
| |
422 |
| - | |
423 |
| - | |
| 424 | + | |
| 425 | + | |
424 | 426 |
| |
425 | 427 |
| |
426 | 428 |
| |
| |||
446 | 448 |
| |
447 | 449 |
| |
448 | 450 |
| |
449 |
| - | |
450 |
| - | |
451 |
| - | |
| 451 | + | |
452 | 452 |
| |
453 | 453 |
| |
454 | 454 |
| |
| |||
496 | 496 |
| |
497 | 497 |
| |
498 | 498 |
| |
499 |
| - | |
500 |
| - | |
| 499 | + | |
| 500 | + | |
501 | 501 |
| |
502 | 502 |
| |
503 | 503 |
| |
504 |
| - | |
505 |
| - | |
506 |
| - | |
507 |
| - | |
508 |
| - | |
509 |
| - | |
510 |
| - | |
511 |
| - | |
512 |
| - | |
513 |
| - | |
514 |
| - | |
515 |
| - | |
516 |
| - | |
517 |
| - | |
518 |
| - | |
519 |
| - | |
520 |
| - | |
521 |
| - | |
522 |
| - | |
523 |
| - | |
524 |
| - | |
525 |
| - | |
526 | 504 |
| |
527 | 505 |
| |
528 | 506 |
| |
| |||
555 | 533 |
| |
556 | 534 |
| |
557 | 535 |
| |
558 |
| - | |
| 536 | + | |
559 | 537 |
| |
560 | 538 |
| |
561 | 539 |
| |
562 | 540 |
| |
563 | 541 |
| |
564 | 542 |
| |
565 | 543 |
| |
566 |
| - | |
| 544 | + | |
567 | 545 |
| |
568 | 546 |
| |
569 | 547 |
| |
| |||
584 | 562 |
| |
585 | 563 |
| |
586 | 564 |
| |
587 |
| - | |
588 |
| - | |
589 |
| - | |
| 565 | + | |
590 | 566 |
| |
591 | 567 |
| |
592 | 568 |
| |
| |||
597 | 573 |
| |
598 | 574 |
| |
599 | 575 |
| |
600 |
| - | |
| 576 | + | |
| 577 | + | |
601 | 578 |
| |
602 |
| - | |
603 |
| - | |
604 |
| - | |
| 579 | + | |
605 | 580 |
| |
606 | 581 |
| |
| 582 | + | |
607 | 583 |
| |
608 | 584 |
| |
609 | 585 |
| |
| |||
615 | 591 |
| |
616 | 592 |
| |
617 | 593 |
| |
618 |
| - | |
619 |
| - | |
620 |
| - | |
621 | 594 |
| |
622 | 595 |
| |
623 | 596 |
| |
624 | 597 |
| |
625 | 598 |
| |
626 | 599 |
| |
627 | 600 |
| |
628 |
| - | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
629 | 606 |
| |
| 607 | + | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
630 | 611 |
| |
631 | 612 |
| |
632 | 613 |
| |
633 | 614 |
| |
634 | 615 |
| |
635 | 616 |
| |
636 |
| - | |
637 |
| - | |
638 |
| - | |
639 |
| - | |
640 |
| - | |
641 |
| - | |
642 |
| - | |
643 |
| - | |
644 |
| - | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
645 | 622 |
| |
646 |
| - | |
647 |
| - | |
648 |
| - | |
| 623 | + | |
649 | 624 |
| |
650 | 625 |
| |
651 | 626 |
| |
| |||
659 | 634 |
| |
660 | 635 |
| |
661 | 636 |
| |
662 |
| - | |
663 |
| - | |
664 |
| - | |
665 |
| - | |
666 |
| - | |
667 |
| - | |
668 | 637 |
| |
669 | 638 |
| |
670 | 639 |
| |
671 | 640 |
| |
672 | 641 |
| |
673 | 642 |
| |
674 | 643 |
| |
| 644 | + | |
| 645 | + | |
| 646 | + | |
675 | 647 |
| |
676 | 648 |
| |
677 | 649 |
| |
| |||
682 | 654 |
| |
683 | 655 |
| |
684 | 656 |
| |
685 |
| - | |
| 657 | + | |
686 | 658 |
| |
687 | 659 |
| |
688 | 660 |
| |
| |||
695 | 667 |
| |
696 | 668 |
| |
697 | 669 |
| |
698 |
| - | |
699 |
| - | |
700 |
| - | |
701 | 670 |
| |
702 | 671 |
| |
703 | 672 |
| |
| |||
708 | 677 |
| |
709 | 678 |
| |
710 | 679 |
| |
711 |
| - | |
712 | 680 |
| |
713 | 681 |
| |
714 | 682 |
| |
| |||
776 | 744 |
| |
777 | 745 |
| |
778 | 746 |
| |
779 |
| - | |
780 |
| - | |
| 747 | + | |
| 748 | + | |
781 | 749 |
| |
782 | 750 |
| |
783 | 751 |
| |
| |||
820 | 788 |
| |
821 | 789 |
| |
822 | 790 |
| |
| 791 | + | |
| 792 | + | |
| 793 | + | |
| 794 | + | |
| 795 | + | |
| 796 | + | |
| 797 | + | |
| 798 | + | |
| 799 | + | |
| 800 | + | |
| 801 | + | |
| 802 | + | |
| 803 | + | |
| 804 | + | |
| 805 | + | |
| 806 | + | |
| 807 | + | |
| 808 | + | |
| 809 | + | |
| 810 | + | |
| 811 | + | |
| 812 | + | |
| 813 | + | |
| 814 | + | |
| 815 | + | |
| 816 | + | |
| 817 | + | |
| 818 | + | |
| 819 | + | |
| 820 | + | |
| 821 | + | |
| 822 | + | |
| 823 | + | |
| 824 | + | |
| 825 | + | |
| 826 | + | |
| 827 | + | |
| 828 | + | |
| 829 | + | |
| 830 | + | |
| 831 | + | |
| 832 | + | |
| 833 | + | |
| 834 | + | |
| 835 | + | |
| 836 | + | |
| 837 | + | |
| 838 | + | |
| 839 | + | |
| 840 | + | |
| 841 | + | |
| 842 | + | |
823 | 843 |
| |
824 | 844 |
| |
825 | 845 |
| |
|
test/ir/pir/test_while_api.py
Copy file name to clipboardExpand all lines: test/ir/pir/test_while_api.py+38-1Lines changed: 38 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
152 | 152 |
| |
153 | 153 |
| |
154 | 154 |
| |
155 |
| - | |
| 155 | + | |
156 | 156 |
| |
157 | 157 |
| |
158 | 158 |
| |
| |||
189 | 189 |
| |
190 | 190 |
| |
191 | 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 | + | |
192 | 229 |
| |
193 | 230 |
| |
194 | 231 |
|
You can’t perform that action at this time.
0 commit comments