CARVIEW |
Select Language
HTTP/2 200
date: Sat, 26 Jul 2025 00:47:30 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/"e8f595ee6b171e8f2f87ec829f24659f"
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=O%2FqJfIbJXzpT5QlBgg%2Bv9wBi%2BVgP%2BI6QgbqStkR3Solz5Pk2rESqKwOP6bkTnKR1tV%2B1kOdMXKpdMKlk8%2F5O0zeTYl1f2H7e1BKAUPZD2OF8oarwcPbOw3i2JUi0v3m%2BHuksdufAaYvL8%2BwSB%2BMFNzaXuShwRQG8fVLABVSsIcraN%2BGH7mR4JeJC56Ssml93b8JeeD%2F1POm%2BmOIAcORbLZaaWsEJehnvVH44Tj8hnDJJEZizMiNKWI181hvBB7vPnjF%2Bn56EBiolbAfke0ao7Q%3D%3D--2Q%2FqfiCWkvaHvIbW--29OkgHYtxiYZhFHUr1acHw%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.128746772.1753490849; Path=/; Domain=github.com; Expires=Sun, 26 Jul 2026 00:47:29 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Sun, 26 Jul 2026 00:47:29 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: D4DC:14DB91:67634:A5765:688425A1
[Typing][C-41, C-42][BUAA] Add type annotations for `python/paddle/di… · PaddlePaddle/Paddle@b07423c · GitHub
Copy file name to clipboardExpand all lines: python/paddle/distributed/fleet/base/role_maker.py
Skip to content
Navigation Menu
{{ message }}
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Commit b07423c
File tree
Expand file treeCollapse file tree
2 files changed
+134
-102
lines changedFilter options
- python/paddle/distributed/fleet/base
Expand file treeCollapse file tree
2 files changed
+134
-102
lines changedpython/paddle/distributed/fleet/base/role_maker.py
Copy file name to clipboardExpand all lines: python/paddle/distributed/fleet/base/role_maker.py+62-47Lines changed: 62 additions & 47 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 | 20 |
| |
19 | 21 |
| |
| 22 | + | |
20 | 23 |
| |
21 | 24 |
| |
22 | 25 |
| |
| |||
28 | 31 |
| |
29 | 32 |
| |
30 | 33 |
| |
| 34 | + | |
| 35 | + | |
| 36 | + | |
31 | 37 |
| |
32 | 38 |
| |
33 | 39 |
| |
34 | 40 |
| |
35 |
| - | |
36 |
| - | |
37 |
| - | |
38 |
| - | |
39 |
| - | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
40 | 46 |
| |
41 | 47 |
| |
42 | 48 |
| |
| |||
563 | 569 |
| |
564 | 570 |
| |
565 | 571 |
| |
566 |
| - | |
| 572 | + | |
567 | 573 |
| |
568 | 574 |
| |
569 | 575 |
| |
| |||
589 | 595 |
| |
590 | 596 |
| |
591 | 597 |
| |
592 |
| - | |
| 598 | + | |
593 | 599 |
| |
594 | 600 |
| |
595 |
| - | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
596 | 604 |
| |
597 | 605 |
| |
598 |
| - | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
599 | 609 |
| |
600 | 610 |
| |
601 |
| - | |
| 611 | + | |
602 | 612 |
| |
603 | 613 |
| |
604 | 614 |
| |
605 | 615 |
| |
606 | 616 |
| |
607 | 617 |
| |
608 | 618 |
| |
609 |
| - | |
| 619 | + | |
610 | 620 |
| |
611 | 621 |
| |
612 | 622 |
| |
613 | 623 |
| |
614 | 624 |
| |
615 | 625 |
| |
616 | 626 |
| |
617 |
| - | |
| 627 | + | |
618 | 628 |
| |
619 | 629 |
| |
620 | 630 |
| |
621 | 631 |
| |
622 | 632 |
| |
623 | 633 |
| |
624 | 634 |
| |
625 |
| - | |
| 635 | + | |
626 | 636 |
| |
627 | 637 |
| |
628 | 638 |
| |
629 | 639 |
| |
630 | 640 |
| |
631 | 641 |
| |
632 | 642 |
| |
633 |
| - | |
| 643 | + | |
634 | 644 |
| |
635 | 645 |
| |
636 | 646 |
| |
637 | 647 |
| |
638 | 648 |
| |
639 | 649 |
| |
640 | 650 |
| |
641 |
| - | |
| 651 | + | |
642 | 652 |
| |
643 | 653 |
| |
644 | 654 |
| |
645 | 655 |
| |
646 | 656 |
| |
647 | 657 |
| |
648 | 658 |
| |
649 |
| - | |
| 659 | + | |
650 | 660 |
| |
651 | 661 |
| |
652 | 662 |
| |
653 | 663 |
| |
654 | 664 |
| |
655 | 665 |
| |
656 | 666 |
| |
657 |
| - | |
| 667 | + | |
658 | 668 |
| |
659 | 669 |
| |
660 | 670 |
| |
661 | 671 |
| |
662 |
| - | |
| 672 | + | |
663 | 673 |
| |
664 | 674 |
| |
665 | 675 |
| |
666 | 676 |
| |
667 | 677 |
| |
668 | 678 |
| |
669 | 679 |
| |
670 |
| - | |
| 680 | + | |
671 | 681 |
| |
672 | 682 |
| |
673 | 683 |
| |
674 | 684 |
| |
675 | 685 |
| |
676 | 686 |
| |
677 | 687 |
| |
678 |
| - | |
| 688 | + | |
679 | 689 |
| |
680 | 690 |
| |
681 | 691 |
| |
682 | 692 |
| |
683 | 693 |
| |
684 | 694 |
| |
685 | 695 |
| |
686 |
| - | |
| 696 | + | |
687 | 697 |
| |
688 | 698 |
| |
689 | 699 |
| |
690 | 700 |
| |
691 | 701 |
| |
692 | 702 |
| |
693 | 703 |
| |
694 |
| - | |
| 704 | + | |
695 | 705 |
| |
696 | 706 |
| |
697 | 707 |
| |
698 | 708 |
| |
699 | 709 |
| |
700 | 710 |
| |
701 | 711 |
| |
702 |
| - | |
| 712 | + | |
703 | 713 |
| |
704 | 714 |
| |
705 | 715 |
| |
| |||
711 | 721 |
| |
712 | 722 |
| |
713 | 723 |
| |
714 |
| - | |
| 724 | + | |
715 | 725 |
| |
716 | 726 |
| |
717 | 727 |
| |
718 | 728 |
| |
719 | 729 |
| |
720 | 730 |
| |
721 | 731 |
| |
722 |
| - | |
| 732 | + | |
723 | 733 |
| |
724 | 734 |
| |
725 | 735 |
| |
726 | 736 |
| |
727 | 737 |
| |
728 | 738 |
| |
729 | 739 |
| |
730 |
| - | |
| 740 | + | |
731 | 741 |
| |
732 | 742 |
| |
733 | 743 |
| |
734 | 744 |
| |
735 |
| - | |
| 745 | + | |
736 | 746 |
| |
737 | 747 |
| |
738 | 748 |
| |
739 | 749 |
| |
740 |
| - | |
| 750 | + | |
741 | 751 |
| |
742 | 752 |
| |
743 | 753 |
| |
744 | 754 |
| |
745 |
| - | |
| 755 | + | |
746 | 756 |
| |
747 | 757 |
| |
748 | 758 |
| |
749 | 759 |
| |
750 | 760 |
| |
751 | 761 |
| |
752 | 762 |
| |
753 |
| - | |
| 763 | + | |
754 | 764 |
| |
755 | 765 |
| |
756 | 766 |
| |
757 | 767 |
| |
758 | 768 |
| |
759 | 769 |
| |
760 | 770 |
| |
761 |
| - | |
| 771 | + | |
762 | 772 |
| |
763 | 773 |
| |
764 | 774 |
| |
| |||
770 | 780 |
| |
771 | 781 |
| |
772 | 782 |
| |
773 |
| - | |
| 783 | + | |
774 | 784 |
| |
775 | 785 |
| |
776 |
| - | |
| 786 | + | |
777 | 787 |
| |
778 | 788 |
| |
779 | 789 |
| |
| |||
782 | 792 |
| |
783 | 793 |
| |
784 | 794 |
| |
785 |
| - | |
| 795 | + | |
786 | 796 |
| |
787 | 797 |
| |
788 | 798 |
| |
789 | 799 |
| |
790 | 800 |
| |
791 | 801 |
| |
792 | 802 |
| |
793 |
| - | |
| 803 | + | |
794 | 804 |
| |
795 | 805 |
| |
796 | 806 |
| |
| |||
807 | 817 |
| |
808 | 818 |
| |
809 | 819 |
| |
810 |
| - | |
| 820 | + | |
811 | 821 |
| |
812 | 822 |
| |
813 | 823 |
| |
| |||
819 | 829 |
| |
820 | 830 |
| |
821 | 831 |
| |
822 |
| - | |
| 832 | + | |
823 | 833 |
| |
824 | 834 |
| |
825 | 835 |
| |
| |||
828 | 838 |
| |
829 | 839 |
| |
830 | 840 |
| |
831 |
| - | |
| 841 | + | |
832 | 842 |
| |
833 | 843 |
| |
834 | 844 |
| |
835 | 845 |
| |
836 | 846 |
| |
837 | 847 |
| |
838 | 848 |
| |
839 |
| - | |
| 849 | + | |
840 | 850 |
| |
841 | 851 |
| |
842 | 852 |
| |
843 | 853 |
| |
844 | 854 |
| |
845 | 855 |
| |
846 | 856 |
| |
847 |
| - | |
| 857 | + | |
848 | 858 |
| |
849 | 859 |
| |
850 | 860 |
| |
| |||
1084 | 1094 |
| |
1085 | 1095 |
| |
1086 | 1096 |
| |
1087 |
| - | |
| 1097 | + | |
1088 | 1098 |
| |
1089 | 1099 |
| |
1090 | 1100 |
| |
| |||
1107 | 1117 |
| |
1108 | 1118 |
| |
1109 | 1119 |
| |
1110 |
| - | |
| 1120 | + | |
1111 | 1121 |
| |
1112 | 1122 |
| |
1113 | 1123 |
| |
| |||
1186 | 1196 |
| |
1187 | 1197 |
| |
1188 | 1198 |
| |
1189 |
| - | |
| 1199 | + | |
1190 | 1200 |
| |
1191 | 1201 |
| |
1192 | 1202 |
| |
| |||
1217 | 1227 |
| |
1218 | 1228 |
| |
1219 | 1229 |
| |
1220 |
| - | |
| 1230 | + | |
| 1231 | + | |
| 1232 | + | |
| 1233 | + | |
| 1234 | + | |
| 1235 | + | |
1221 | 1236 |
| |
1222 | 1237 |
| |
1223 | 1238 |
| |
1224 | 1239 |
| |
1225 | 1240 |
| |
1226 |
| - | |
| 1241 | + | |
1227 | 1242 |
| |
1228 | 1243 |
| |
1229 | 1244 |
| |
| |||
1244 | 1259 |
| |
1245 | 1260 |
| |
1246 | 1261 |
| |
1247 |
| - | |
| 1262 | + | |
1248 | 1263 |
| |
1249 | 1264 |
| |
1250 | 1265 |
| |
1251 | 1266 |
| |
1252 | 1267 |
| |
1253 | 1268 |
| |
1254 |
| - | |
| 1269 | + | |
1255 | 1270 |
| |
1256 | 1271 |
| |
1257 | 1272 |
| |
|
You can’t perform that action at this time.
0 commit comments