CARVIEW |
Select Language
HTTP/2 200
date: Fri, 25 Jul 2025 09:51: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/"c540b95ea33bdff519d2ae5f46165a55"
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=y3GKyanujgqbxZ700ggrU5x7vXrnaO%2F5DWI7X3auun0DqJrdkZ4Grm5QadwprPD%2BOYisIDKUBeZPeRT1i65aut7DxD09q%2FE%2FmBaAxZK%2BI11p1Jdb1zBeF9cb9n0S0lZivxCxvXPGwYltpp3EjnYZzIhW9WsHFqVKGUW6L6geZB7gDRLfLY7AV0923TntfJxBsXSok3vbTK3x9VYN%2BqGYSZ612XtWb0LYWe2RQdrIpDMph3xHxdeW2EjN5FZHY%2FmH3KAMbbKaP%2F9HXPk9jSC2yQ%3D%3D--yVbe07gyZtwizqi1--py8iMwji%2Bu05kdKM6jKLGw%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.1884892195.1753437109; Path=/; Domain=github.com; Expires=Sat, 25 Jul 2026 09:51:49 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Sat, 25 Jul 2026 09:51:49 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: D0E2:2EEC20:68A0E2:7CCA50:688353B5
[Typing][A-97,A-99] Add type annotations for sampler and batch sample… · PaddlePaddle/Paddle@fb5f3ea · GitHub
Copy file name to clipboardExpand all lines: python/paddle/io/dataloader/batch_sampler.py
Copy file name to clipboardExpand all lines: python/paddle/io/dataloader/sampler.py
Skip to content
Navigation Menu
{{ message }}
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Commit fb5f3ea
File tree
Expand file treeCollapse file tree
2 files changed
+114
-42
lines changedFilter options
- python/paddle/io/dataloader
Expand file treeCollapse file tree
2 files changed
+114
-42
lines changedpython/paddle/io/dataloader/batch_sampler.py
Copy file name to clipboardExpand all lines: python/paddle/io/dataloader/batch_sampler.py+46-22Lines changed: 46 additions & 22 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
| 15 | + | |
| 16 | + | |
15 | 17 |
| |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
16 | 23 |
| |
17 | 24 |
| |
18 | 25 |
| |
19 | 26 |
| |
20 | 27 |
| |
21 | 28 |
| |
22 | 29 |
| |
23 |
| - | |
| 30 | + | |
24 | 31 |
| |
25 | 32 |
| |
26 | 33 |
| |
| |||
98 | 105 |
| |
99 | 106 |
| |
100 | 107 |
| |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
101 | 113 |
| |
102 | 114 |
| |
103 |
| - | |
104 |
| - | |
105 |
| - | |
106 |
| - | |
107 |
| - | |
108 |
| - | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
109 | 121 |
| |
110 | 122 |
| |
111 | 123 |
| |
| |||
142 | 154 |
| |
143 | 155 |
| |
144 | 156 |
| |
145 |
| - | |
| 157 | + | |
146 | 158 |
| |
147 | 159 |
| |
148 | 160 |
| |
| |||
153 | 165 |
| |
154 | 166 |
| |
155 | 167 |
| |
156 |
| - | |
| 168 | + | |
157 | 169 |
| |
158 | 170 |
| |
159 | 171 |
| |
160 | 172 |
| |
161 | 173 |
| |
162 | 174 |
| |
163 |
| - | |
164 |
| - | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
165 | 180 |
| |
166 | 181 |
| |
167 | 182 |
| |
168 | 183 |
| |
169 | 184 |
| |
170 | 185 |
| |
171 |
| - | |
| 186 | + | |
172 | 187 |
| |
173 | 188 |
| |
174 | 189 |
| |
| |||
231 | 246 |
| |
232 | 247 |
| |
233 | 248 |
| |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
234 | 258 |
| |
235 | 259 |
| |
236 |
| - | |
237 |
| - | |
238 |
| - | |
239 |
| - | |
240 |
| - | |
241 |
| - | |
242 |
| - | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
243 | 267 |
| |
244 | 268 |
| |
245 | 269 |
| |
| |||
279 | 303 |
| |
280 | 304 |
| |
281 | 305 |
| |
282 |
| - | |
| 306 | + | |
283 | 307 |
| |
284 | 308 |
| |
285 | 309 |
| |
| |||
337 | 361 |
| |
338 | 362 |
| |
339 | 363 |
| |
340 |
| - | |
| 364 | + | |
341 | 365 |
| |
342 | 366 |
| |
343 | 367 |
| |
344 | 368 |
| |
345 | 369 |
| |
346 |
| - | |
| 370 | + | |
347 | 371 |
| |
348 | 372 |
| |
349 | 373 |
| |
|
python/paddle/io/dataloader/sampler.py
Copy file name to clipboardExpand all lines: python/paddle/io/dataloader/sampler.py+68-20Lines changed: 68 additions & 20 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
15 | 28 |
| |
16 | 29 |
| |
17 | 30 |
| |
18 | 31 |
| |
19 | 32 |
| |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
20 | 40 |
| |
21 |
| - | |
| 41 | + | |
| 42 | + | |
22 | 43 |
| |
23 | 44 |
| |
24 | 45 |
| |
| |||
85 | 106 |
| |
86 | 107 |
| |
87 | 108 |
| |
88 |
| - | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
89 | 112 |
| |
90 | 113 |
| |
91 |
| - | |
| 114 | + | |
92 | 115 |
| |
93 | 116 |
| |
94 | 117 |
| |
95 | 118 |
| |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
96 | 123 |
| |
97 | 124 |
| |
98 |
| - | |
| 125 | + | |
99 | 126 |
| |
100 | 127 |
| |
101 | 128 |
| |
| |||
140 | 167 |
| |
141 | 168 |
| |
142 | 169 |
| |
143 |
| - | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
144 | 173 |
| |
145 | 174 |
| |
146 |
| - | |
| 175 | + | |
147 | 176 |
| |
148 | 177 |
| |
149 |
| - | |
| 178 | + | |
150 | 179 |
| |
151 | 180 |
| |
152 | 181 |
| |
153 |
| - | |
| 182 | + | |
154 | 183 |
| |
155 | 184 |
| |
156 | 185 |
| |
| |||
199 | 228 |
| |
200 | 229 |
| |
201 | 230 |
| |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
202 | 235 |
| |
203 |
| - | |
204 |
| - | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
205 | 242 |
| |
206 | 243 |
| |
207 | 244 |
| |
| |||
226 | 263 |
| |
227 | 264 |
| |
228 | 265 |
| |
229 |
| - | |
| 266 | + | |
230 | 267 |
| |
231 | 268 |
| |
232 | 269 |
| |
233 | 270 |
| |
234 |
| - | |
| 271 | + | |
235 | 272 |
| |
236 | 273 |
| |
237 | 274 |
| |
| |||
252 | 289 |
| |
253 | 290 |
| |
254 | 291 |
| |
255 |
| - | |
| 292 | + | |
256 | 293 |
| |
257 | 294 |
| |
258 | 295 |
| |
| |||
288 | 325 |
| |
289 | 326 |
| |
290 | 327 |
| |
291 |
| - | |
| 328 | + | |
292 | 329 |
| |
293 | 330 |
| |
294 | 331 |
| |
| |||
325 | 362 |
| |
326 | 363 |
| |
327 | 364 |
| |
328 |
| - | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
329 | 375 |
| |
330 | 376 |
| |
331 | 377 |
| |
| |||
334 | 380 |
| |
335 | 381 |
| |
336 | 382 |
| |
337 |
| - | |
| 383 | + | |
338 | 384 |
| |
339 | 385 |
| |
340 | 386 |
| |
341 | 387 |
| |
342 | 388 |
| |
343 |
| - | |
| 389 | + | |
344 | 390 |
| |
345 | 391 |
| |
346 | 392 |
| |
347 | 393 |
| |
348 |
| - | |
| 394 | + | |
349 | 395 |
| |
350 | 396 |
| |
351 | 397 |
| |
| |||
372 | 418 |
| |
373 | 419 |
| |
374 | 420 |
| |
375 |
| - | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
376 | 424 |
| |
377 | 425 |
| |
378 | 426 |
| |
379 | 427 |
| |
380 | 428 |
| |
381 | 429 |
| |
382 |
| - | |
| 430 | + | |
383 | 431 |
| |
384 | 432 |
| |
385 | 433 |
| |
|
You can’t perform that action at this time.
0 commit comments