CARVIEW |
Select Language
HTTP/2 200
date: Fri, 25 Jul 2025 07:21:35 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/"1aa363dce0fe80874007afc62ce87c6d"
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=Fl0qenezmR1ZUlI9ebyMYtcqpfmf2P9Z0pOZG547ybYqYxLxkTrJHeqlMJDl1rNG5xz0h%2BhfiHYLaH17Osr4BV60qmD4m10Ht3qNcwsYk6klTHKIPu17ypfCmoWfuYDqWOJjn3xNhsy%2FAvkZ3Ti11VO5vuOW9WrEso9h3zR0khjtcAzcwkmvoO3xywyLGj0mDQqMAIJVz%2BqgVFOb0Z3cbBmOE0uqCMa8JQewEUc4VY9Yr1PcS7GfpGCFBbCNJMXlIYhLdafdJAf9QmWspIRR9g%3D%3D--UdhSknfTjV1W%2FxxG--h1EgVd4o4oab%2FVmaJtNmDg%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.1141206172.1753428094; Path=/; Domain=github.com; Expires=Sat, 25 Jul 2026 07:21:34 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Sat, 25 Jul 2026 07:21:34 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: D104:2774F0:450B44:548443:6883307E
[Typing][A-52] Add type annotations for `python/paddle/hapi/model.py`… · PaddlePaddle/Paddle@2188dd9 · GitHub
Copy file name to clipboardExpand all lines: python/paddle/hapi/model.py
Skip to content
Navigation Menu
{{ message }}
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Commit 2188dd9
File tree
Expand file treeCollapse file tree
1 file changed
+136
-37
lines changedFilter options
- python/paddle/hapi
Expand file treeCollapse file tree
1 file changed
+136
-37
lines changedpython/paddle/hapi/model.py
Copy file name to clipboardExpand all lines: python/paddle/hapi/model.py+136-37Lines changed: 136 additions & 37 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
11 | 11 |
| |
12 | 12 |
| |
13 | 13 |
| |
| 14 | + | |
14 | 15 |
| |
15 | 16 |
| |
16 | 17 |
| |
| |||
19 | 20 |
| |
20 | 21 |
| |
21 | 22 |
| |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
22 | 32 |
| |
23 | 33 |
| |
| 34 | + | |
24 | 35 |
| |
25 | 36 |
| |
26 | 37 |
| |
| 38 | + | |
27 | 39 |
| |
28 | 40 |
| |
29 | 41 |
| |
| |||
45 | 57 |
| |
46 | 58 |
| |
47 | 59 |
| |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
48 | 77 |
| |
49 | 78 |
| |
50 | 79 |
| |
| |||
1161 | 1190 |
| |
1162 | 1191 |
| |
1163 | 1192 |
| |
1164 |
| - | |
| 1193 | + | |
| 1194 | + | |
| 1195 | + | |
| 1196 | + | |
| 1197 | + | |
| 1198 | + | |
| 1199 | + | |
| 1200 | + | |
| 1201 | + | |
| 1202 | + | |
1165 | 1203 |
| |
1166 | 1204 |
| |
1167 | 1205 |
| |
| |||
1191 | 1229 |
| |
1192 | 1230 |
| |
1193 | 1231 |
| |
1194 |
| - | |
| 1232 | + | |
| 1233 | + | |
| 1234 | + | |
| 1235 | + | |
| 1236 | + | |
| 1237 | + | |
1195 | 1238 |
| |
1196 | 1239 |
| |
1197 | 1240 |
| |
| |||
1248 | 1291 |
| |
1249 | 1292 |
| |
1250 | 1293 |
| |
1251 |
| - | |
| 1294 | + | |
| 1295 | + | |
| 1296 | + | |
1252 | 1297 |
| |
1253 | 1298 |
| |
1254 | 1299 |
| |
| |||
1304 | 1349 |
| |
1305 | 1350 |
| |
1306 | 1351 |
| |
1307 |
| - | |
| 1352 | + | |
1308 | 1353 |
| |
1309 | 1354 |
| |
1310 | 1355 |
| |
| |||
1353 | 1398 |
| |
1354 | 1399 |
| |
1355 | 1400 |
| |
1356 |
| - | |
| 1401 | + | |
1357 | 1402 |
| |
1358 | 1403 |
| |
1359 | 1404 |
| |
| |||
1384 | 1429 |
| |
1385 | 1430 |
| |
1386 | 1431 |
| |
| 1432 | + | |
1387 | 1433 |
| |
1388 | 1434 |
| |
1389 | 1435 |
| |
| |||
1420 | 1466 |
| |
1421 | 1467 |
| |
1422 | 1468 |
| |
1423 |
| - | |
| 1469 | + | |
| 1470 | + | |
| 1471 | + | |
| 1472 | + | |
| 1473 | + | |
| 1474 | + | |
1424 | 1475 |
| |
1425 | 1476 |
| |
1426 | 1477 |
| |
| |||
1533 | 1584 |
| |
1534 | 1585 |
| |
1535 | 1586 |
| |
1536 |
| - | |
| 1587 | + | |
1537 | 1588 |
| |
1538 | 1589 |
| |
1539 | 1590 |
| |
| |||
1668 | 1719 |
| |
1669 | 1720 |
| |
1670 | 1721 |
| |
1671 |
| - | |
1672 |
| - | |
| 1722 | + | |
| 1723 | + | |
| 1724 | + | |
| 1725 | + | |
| 1726 | + | |
| 1727 | + | |
| 1728 | + | |
| 1729 | + | |
1673 | 1730 |
| |
1674 | 1731 |
| |
1675 | 1732 |
| |
| |||
1749 | 1806 |
| |
1750 | 1807 |
| |
1751 | 1808 |
| |
1752 |
| - | |
1753 |
| - | |
1754 |
| - | |
1755 |
| - | |
1756 |
| - | |
1757 |
| - | |
1758 |
| - | |
1759 |
| - | |
1760 |
| - | |
1761 |
| - | |
1762 |
| - | |
1763 |
| - | |
1764 |
| - | |
1765 |
| - | |
1766 |
| - | |
1767 |
| - | |
| 1809 | + | |
| 1810 | + | |
| 1811 | + | |
| 1812 | + | |
| 1813 | + | |
| 1814 | + | |
| 1815 | + | |
| 1816 | + | |
| 1817 | + | |
| 1818 | + | |
| 1819 | + | |
| 1820 | + | |
| 1821 | + | |
| 1822 | + | |
| 1823 | + | |
| 1824 | + | |
1768 | 1825 |
| |
1769 | 1826 |
| |
1770 | 1827 |
| |
| |||
1803 | 1860 |
| |
1804 | 1861 |
| |
1805 | 1862 |
| |
1806 |
| - | |
| 1863 | + | |
1807 | 1864 |
| |
1808 | 1865 |
| |
1809 | 1866 |
| |
| |||
1998 | 2055 |
| |
1999 | 2056 |
| |
2000 | 2057 |
| |
2001 |
| - | |
2002 |
| - | |
2003 |
| - | |
2004 |
| - | |
2005 |
| - | |
2006 |
| - | |
2007 |
| - | |
2008 |
| - | |
| 2058 | + | |
| 2059 | + | |
| 2060 | + | |
| 2061 | + | |
| 2062 | + | |
| 2063 | + | |
| 2064 | + | |
| 2065 | + | |
2009 | 2066 |
| |
2010 | 2067 |
| |
2011 | 2068 |
| |
| |||
2024 | 2081 |
| |
2025 | 2082 |
| |
2026 | 2083 |
| |
2027 |
| - | |
| 2084 | + | |
2028 | 2085 |
| |
2029 | 2086 |
| |
2030 | 2087 |
| |
| |||
2107 | 2164 |
| |
2108 | 2165 |
| |
2109 | 2166 |
| |
| 2167 | + | |
| 2168 | + | |
| 2169 | + | |
| 2170 | + | |
| 2171 | + | |
| 2172 | + | |
| 2173 | + | |
| 2174 | + | |
| 2175 | + | |
| 2176 | + | |
| 2177 | + | |
| 2178 | + | |
| 2179 | + | |
| 2180 | + | |
| 2181 | + | |
| 2182 | + | |
| 2183 | + | |
| 2184 | + | |
| 2185 | + | |
| 2186 | + | |
| 2187 | + | |
| 2188 | + | |
| 2189 | + | |
| 2190 | + | |
| 2191 | + | |
| 2192 | + | |
| 2193 | + | |
| 2194 | + | |
| 2195 | + | |
| 2196 | + | |
| 2197 | + | |
| 2198 | + | |
| 2199 | + | |
| 2200 | + | |
| 2201 | + | |
| 2202 | + | |
2110 | 2203 |
| |
2111 | 2204 |
| |
2112 | 2205 |
| |
| |||
2222 | 2315 |
| |
2223 | 2316 |
| |
2224 | 2317 |
| |
2225 |
| - | |
| 2318 | + | |
2226 | 2319 |
| |
2227 | 2320 |
| |
2228 | 2321 |
| |
| |||
2372 | 2465 |
| |
2373 | 2466 |
| |
2374 | 2467 |
| |
2375 |
| - | |
| 2468 | + | |
| 2469 | + | |
| 2470 | + | |
| 2471 | + | |
| 2472 | + | |
| 2473 | + | |
| 2474 | + | |
2376 | 2475 |
| |
2377 | 2476 |
| |
2378 | 2477 |
| |
|
You can’t perform that action at this time.
0 commit comments