CARVIEW |
Select Language
HTTP/2 200
date: Thu, 24 Jul 2025 15:21:27 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/pytorch/pytorch.git
etag: W/"ad9852b70e086fbce122cf7dd2f33a4d"
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=P2ciXvKa9qpFirsRgFd6ZWP0JPjS44zKLyZ9XCUR57IkPlr8bWOUXKHiSlthLPDQjCD6KAjekC297rUNaFZ%2B5%2FzCBySMgRDT%2BUJVNkr95hgzxy21afYdJhB6NqkNne5vjI5PvvQQdDKN4lZswOKYcS5CRxMPsYPvPG5WO45juTI4pY58ZBdj6zXhzMtzRjFStcIb28oGpQV6iNjxWZlaTZHf%2F8wc0n6B19TeAFAH%2BlFWD04Ga1jVRtBjchdRjgYBqw4tFBD6fIaWUkMdKI80hQ%3D%3D--53zX3v91JMeavNIi--JoPHR%2FrAgqYsEdG%2BSqNnFw%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.1378966114.1753370485; Path=/; Domain=github.com; Expires=Fri, 24 Jul 2026 15:21:25 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Fri, 24 Jul 2026 15:21:25 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: 9254:1606F:7F409:94678:68824F75
[Docs] Optimize parameter description to declare allowed type (2/N) (… · pytorch/pytorch@7b86323 · GitHub
Skip to content
Navigation Menu
{{ message }}
-
Notifications
You must be signed in to change notification settings - Fork 24.8k
Commit 7b86323
[Docs] Optimize parameter description to declare allowed type (2/N) (#138152)
Inspired by issue #137422 and #103847
Optimize method parameter types in docs to given users a more clear about what expected to pass to methods.
Previous PR:
- [x] #137956
Pull Request resolved: #138152
Approved by: https://github.com/albanD1 parent 354bc3a commit 7b86323Copy full SHA for 7b86323
File tree
Expand file treeCollapse file tree
1 file changed
+21
-18
lines changedFilter options
- torch
Expand file treeCollapse file tree
1 file changed
+21
-18
lines changed+21-18Lines changed: 21 additions & 18 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
311 | 311 |
| |
312 | 312 |
| |
313 | 313 |
| |
314 |
| - | |
| 314 | + | |
315 | 315 |
| |
316 | 316 |
| |
317 | 317 |
| |
| |||
320 | 320 |
| |
321 | 321 |
| |
322 | 322 |
| |
323 |
| - | |
| 323 | + | |
324 | 324 |
| |
325 | 325 |
| |
326 | 326 |
| |
| |||
578 | 578 |
| |
579 | 579 |
| |
580 | 580 |
| |
581 |
| - | |
| 581 | + | |
582 | 582 |
| |
583 | 583 |
| |
584 | 584 |
| |
585 | 585 |
| |
586 | 586 |
| |
| 587 | + | |
| 588 | + | |
| 589 | + | |
587 | 590 |
| |
588 | 591 |
| |
589 | 592 |
| |
| |||
732 | 735 |
| |
733 | 736 |
| |
734 | 737 |
| |
735 |
| - | |
| 738 | + | |
736 | 739 |
| |
737 | 740 |
| |
738 | 741 |
| |
| |||
766 | 769 |
| |
767 | 770 |
| |
768 | 771 |
| |
769 |
| - | |
| 772 | + | |
770 | 773 |
| |
771 | 774 |
| |
772 | 775 |
| |
| |||
821 | 824 |
| |
822 | 825 |
| |
823 | 826 |
| |
824 |
| - | |
| 827 | + | |
825 | 828 |
| |
826 | 829 |
| |
827 | 830 |
| |
| |||
876 | 879 |
| |
877 | 880 |
| |
878 | 881 |
| |
879 |
| - | |
| 882 | + | |
880 | 883 |
| |
881 | 884 |
| |
882 | 885 |
| |
| |||
946 | 949 |
| |
947 | 950 |
| |
948 | 951 |
| |
949 |
| - | |
| 952 | + | |
950 | 953 |
| |
951 | 954 |
| |
952 | 955 |
| |
| |||
1025 | 1028 |
| |
1026 | 1029 |
| |
1027 | 1030 |
| |
1028 |
| - | |
| 1031 | + | |
1029 | 1032 |
| |
1030 | 1033 |
| |
1031 | 1034 |
| |
| |||
1061 | 1064 |
| |
1062 | 1065 |
| |
1063 | 1066 |
| |
1064 |
| - | |
| 1067 | + | |
1065 | 1068 |
| |
1066 | 1069 |
| |
1067 | 1070 |
| |
| |||
1070 | 1073 |
| |
1071 | 1074 |
| |
1072 | 1075 |
| |
1073 |
| - | |
| 1076 | + | |
1074 | 1077 |
| |
1075 | 1078 |
| |
1076 | 1079 |
| |
| |||
1097 | 1100 |
| |
1098 | 1101 |
| |
1099 | 1102 |
| |
1100 |
| - | |
| 1103 | + | |
1101 | 1104 |
| |
1102 | 1105 |
| |
1103 | 1106 |
| |
| |||
1106 | 1109 |
| |
1107 | 1110 |
| |
1108 | 1111 |
| |
1109 |
| - | |
| 1112 | + | |
1110 | 1113 |
| |
1111 | 1114 |
| |
1112 | 1115 |
| |
| |||
1138 | 1141 |
| |
1139 | 1142 |
| |
1140 | 1143 |
| |
1141 |
| - | |
| 1144 | + | |
1142 | 1145 |
| |
1143 | 1146 |
| |
1144 | 1147 |
| |
1145 | 1148 |
| |
1146 | 1149 |
| |
1147 | 1150 |
| |
1148 | 1151 |
| |
1149 |
| - | |
| 1152 | + | |
1150 | 1153 |
| |
1151 | 1154 |
| |
1152 | 1155 |
| |
| |||
1178 | 1181 |
| |
1179 | 1182 |
| |
1180 | 1183 |
| |
1181 |
| - | |
| 1184 | + | |
1182 | 1185 |
| |
1183 | 1186 |
| |
1184 | 1187 |
| |
| |||
1187 | 1190 |
| |
1188 | 1191 |
| |
1189 | 1192 |
| |
1190 |
| - | |
| 1193 | + | |
1191 | 1194 |
| |
1192 | 1195 |
| |
1193 | 1196 |
| |
| |||
1352 | 1355 |
| |
1353 | 1356 |
| |
1354 | 1357 |
| |
1355 |
| - | |
| 1358 | + | |
1356 | 1359 |
| |
1357 | 1360 |
| |
1358 | 1361 |
| |
|
You can’t perform that action at this time.
0 commit comments