CARVIEW |
Select Language
HTTP/2 200
date: Sat, 26 Jul 2025 04:22:50 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/"c66d5f6e3b0d21eca0320268a205db8a"
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=%2FyGa2O0MrSGmMXRTpBzsOGmkOrMmkAMZ2Ygt5OhSlKCzi%2FwAQnqpNJFxGu%2FT%2FymL7o5KamINnNQlho8zLPMUNmYt1Tl47G8F96ppYTeetgTAkKki1E1RDaiI3MMG%2FSF7RfeUE8FE0wJfemvVGHUx2YqDnBxGkEkqPKjQCtf075Gj6m45cGZrzQsBBNANtBR0zMM5Ca%2FePa1L0TwN1yvKakZZCeqLnQEtVW5xEvTtdnCbZIbiKPs0MPJ97LSKXDEwwoeJkGdejaKVxbjdQnt9rQ%3D%3D--vOvoy7SaGTGl7KoD--y2qcWq62rceUCbsKdjDsHA%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.2094202994.1753503769; Path=/; Domain=github.com; Expires=Sun, 26 Jul 2026 04:22:49 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Sun, 26 Jul 2026 04:22:49 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: AD18:2992:155143:200F7E:68845819
[Typing][B-30] Add type annotations for `python/paddle/device/__init_… · PaddlePaddle/Paddle@fb94c86 · GitHub
Copy file name to clipboardExpand all lines: python/paddle/device/__init__.py
Skip to content
Navigation Menu
{{ message }}
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Commit fb94c86
File tree
Expand file treeCollapse file tree
1 file changed
+72
-41
lines changedFilter options
- python/paddle/device
Expand file treeCollapse file tree
1 file changed
+72
-41
lines changedpython/paddle/device/__init__.py
Copy file name to clipboardExpand all lines: python/paddle/device/__init__.py+72-41Lines changed: 72 additions & 41 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
15 |
| - | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
16 | 18 |
| |
17 | 19 |
| |
18 | 20 |
| |
| 21 | + | |
19 | 22 |
| |
20 | 23 |
| |
21 | 24 |
| |
| |||
31 | 34 |
| |
32 | 35 |
| |
33 | 36 |
| |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
34 | 46 |
| |
35 | 47 |
| |
36 | 48 |
| |
| |||
59 | 71 |
| |
60 | 72 |
| |
61 | 73 |
| |
62 |
| - | |
| 74 | + | |
63 | 75 |
| |
64 | 76 |
| |
65 | 77 |
| |
| |||
80 | 92 |
| |
81 | 93 |
| |
82 | 94 |
| |
83 |
| - | |
| 95 | + | |
84 | 96 |
| |
85 | 97 |
| |
86 | 98 |
| |
| |||
97 | 109 |
| |
98 | 110 |
| |
99 | 111 |
| |
100 |
| - | |
| 112 | + | |
101 | 113 |
| |
102 | 114 |
| |
103 | 115 |
| |
| |||
115 | 127 |
| |
116 | 128 |
| |
117 | 129 |
| |
118 |
| - | |
| 130 | + | |
119 | 131 |
| |
120 | 132 |
| |
121 | 133 |
| |
| |||
132 | 144 |
| |
133 | 145 |
| |
134 | 146 |
| |
135 |
| - | |
| 147 | + | |
136 | 148 |
| |
137 | 149 |
| |
138 | 150 |
| |
| |||
153 | 165 |
| |
154 | 166 |
| |
155 | 167 |
| |
156 |
| - | |
| 168 | + | |
157 | 169 |
| |
158 | 170 |
| |
159 | 171 |
| |
| |||
186 | 198 |
| |
187 | 199 |
| |
188 | 200 |
| |
189 |
| - | |
| 201 | + | |
190 | 202 |
| |
191 | 203 |
| |
192 | 204 |
| |
| |||
262 | 274 |
| |
263 | 275 |
| |
264 | 276 |
| |
265 |
| - | |
| 277 | + | |
266 | 278 |
| |
267 | 279 |
| |
268 | 280 |
| |
| |||
294 | 306 |
| |
295 | 307 |
| |
296 | 308 |
| |
297 |
| - | |
| 309 | + | |
298 | 310 |
| |
299 | 311 |
| |
300 | 312 |
| |
| |||
334 | 346 |
| |
335 | 347 |
| |
336 | 348 |
| |
337 |
| - | |
| 349 | + | |
338 | 350 |
| |
339 | 351 |
| |
340 | 352 |
| |
| |||
364 | 376 |
| |
365 | 377 |
| |
366 | 378 |
| |
367 |
| - | |
| 379 | + | |
368 | 380 |
| |
369 | 381 |
| |
370 | 382 |
| |
| |||
388 | 400 |
| |
389 | 401 |
| |
390 | 402 |
| |
391 |
| - | |
| 403 | + | |
392 | 404 |
| |
393 | 405 |
| |
394 | 406 |
| |
| |||
418 | 430 |
| |
419 | 431 |
| |
420 | 432 |
| |
421 |
| - | |
| 433 | + | |
422 | 434 |
| |
423 | 435 |
| |
424 | 436 |
| |
| |||
448 | 460 |
| |
449 | 461 |
| |
450 | 462 |
| |
451 |
| - | |
| 463 | + | |
452 | 464 |
| |
453 | 465 |
| |
454 | 466 |
| |
| |||
472 | 484 |
| |
473 | 485 |
| |
474 | 486 |
| |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
475 | 491 |
| |
476 | 492 |
| |
477 |
| - | |
478 |
| - | |
479 |
| - | |
480 |
| - | |
481 |
| - | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
482 | 498 |
| |
483 | 499 |
| |
484 | 500 |
| |
| |||
507 | 523 |
| |
508 | 524 |
| |
509 | 525 |
| |
510 |
| - | |
| 526 | + | |
511 | 527 |
| |
512 | 528 |
| |
513 | 529 |
| |
| |||
538 | 554 |
| |
539 | 555 |
| |
540 | 556 |
| |
541 |
| - | |
| 557 | + | |
542 | 558 |
| |
543 | 559 |
| |
544 | 560 |
| |
| |||
560 | 576 |
| |
561 | 577 |
| |
562 | 578 |
| |
563 |
| - | |
| 579 | + | |
564 | 580 |
| |
565 | 581 |
| |
566 | 582 |
| |
| |||
586 | 602 |
| |
587 | 603 |
| |
588 | 604 |
| |
589 |
| - | |
| 605 | + | |
590 | 606 |
| |
591 | 607 |
| |
592 | 608 |
| |
| |||
610 | 626 |
| |
611 | 627 |
| |
612 | 628 |
| |
613 |
| - | |
| 629 | + | |
614 | 630 |
| |
615 | 631 |
| |
616 | 632 |
| |
| |||
620 | 636 |
| |
621 | 637 |
| |
622 | 638 |
| |
623 |
| - | |
| 639 | + | |
624 | 640 |
| |
625 | 641 |
| |
626 | 642 |
| |
| |||
644 | 660 |
| |
645 | 661 |
| |
646 | 662 |
| |
647 |
| - | |
| 663 | + | |
| 664 | + | |
| 665 | + | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
| 669 | + | |
| 670 | + | |
| 671 | + | |
648 | 672 |
| |
649 | 673 |
| |
650 | 674 |
| |
| |||
684 | 708 |
| |
685 | 709 |
| |
686 | 710 |
| |
687 |
| - | |
| 711 | + | |
688 | 712 |
| |
689 | 713 |
| |
690 | 714 |
| |
| |||
711 | 735 |
| |
712 | 736 |
| |
713 | 737 |
| |
714 |
| - | |
| 738 | + | |
715 | 739 |
| |
716 | 740 |
| |
717 | 741 |
| |
| |||
738 | 762 |
| |
739 | 763 |
| |
740 | 764 |
| |
741 |
| - | |
| 765 | + | |
742 | 766 |
| |
743 | 767 |
| |
744 | 768 |
| |
| |||
769 | 793 |
| |
770 | 794 |
| |
771 | 795 |
| |
772 |
| - | |
| 796 | + | |
773 | 797 |
| |
774 | 798 |
| |
775 | 799 |
| |
| |||
790 | 814 |
| |
791 | 815 |
| |
792 | 816 |
| |
793 |
| - | |
| 817 | + | |
794 | 818 |
| |
795 | 819 |
| |
796 | 820 |
| |
| |||
818 | 842 |
| |
819 | 843 |
| |
820 | 844 |
| |
821 |
| - | |
| 845 | + | |
822 | 846 |
| |
823 | 847 |
| |
824 | 848 |
| |
825 | 849 |
| |
826 |
| - | |
| 850 | + | |
827 | 851 |
| |
828 | 852 |
| |
829 |
| - | |
| 853 | + | |
830 | 854 |
| |
831 | 855 |
| |
832 | 856 |
| |
833 |
| - | |
| 857 | + | |
834 | 858 |
| |
835 | 859 |
| |
836 | 860 |
| |
| |||
881 | 905 |
| |
882 | 906 |
| |
883 | 907 |
| |
884 |
| - | |
| 908 | + | |
885 | 909 |
| |
886 | 910 |
| |
887 | 911 |
| |
| |||
956 | 980 |
| |
957 | 981 |
| |
958 | 982 |
| |
959 |
| - | |
| 983 | + | |
| 984 | + | |
| 985 | + | |
960 | 986 |
| |
961 | 987 |
| |
962 |
| - | |
| 988 | + | |
963 | 989 |
| |
964 | 990 |
| |
965 | 991 |
| |
| |||
973 | 999 |
| |
974 | 1000 |
| |
975 | 1001 |
| |
976 |
| - | |
| 1002 | + | |
| 1003 | + | |
| 1004 | + | |
| 1005 | + | |
| 1006 | + | |
| 1007 | + | |
977 | 1008 |
| |
978 | 1009 |
| |
979 | 1010 |
| |
| |||
986 | 1017 |
| |
987 | 1018 |
| |
988 | 1019 |
| |
989 |
| - | |
| 1020 | + | |
990 | 1021 |
| |
991 | 1022 |
| |
992 | 1023 |
| |
|
You can’t perform that action at this time.
0 commit comments