CARVIEW |
Select Language
HTTP/2 200
date: Sun, 27 Jul 2025 09:36:04 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/"377838240c196b217072090ad3590fa3"
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=yHpwBFWEJ38fYVPKfCT1tTIESOJ9kYMfE0qwbjf7juCjOiD4svyM%2F%2FGULL%2B0qEyfwWzlYjLai4r7UcpoMgWSqFnPz5bQWRikk8yfnfVwwkKMWGtzLLgyGAzumPCYmjxpxZgSJ9pt3kw4emm%2BJ%2FX61Hx0Oda4QwqOVvAK9d5Q72WcgBf8X5aCxyPGHayqOCZES76Sftj5StArVxatU3BpMcFu8FMoTt%2BJ3tR%2BS2TC7jak2DY9yxcXJRyiYgMI9Z6knWqqLT2GK8c4LJIVvpAtFQ%3D%3D--39sSqhtSrnq%2Buysq--zgsNOJfoErvUxMIHbnvlJg%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.827136254.1753608963; Path=/; Domain=github.com; Expires=Mon, 27 Jul 2026 09:36:03 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Mon, 27 Jul 2026 09:36:03 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: 9FC4:242CC6:CD1CFD:10F7FE4:6885F303
[Fix] Fix astype copy when target dtype is same as source Tensor (#69… · PaddlePaddle/Paddle@8b6b703 · GitHub
Copy file name to clipboardExpand all lines: python/paddle/base/dygraph/math_op_patch.py
Copy file name to clipboardExpand all lines: python/paddle/base/framework.py
Copy file name to clipboardExpand all lines: python/paddle/base/layers/math_op_patch.py
Copy file name to clipboardExpand all lines: python/paddle/pir/math_op_patch.py
Copy file name to clipboardExpand all lines: test/deprecated/auto_parallel/test_to_static_deprecated.py
Copy file name to clipboardExpand all lines: test/legacy_test/test_adamw_op.py
Copy file name to clipboardExpand all lines: test/legacy_test/test_math_op_patch.py
Copy file name to clipboardExpand all lines: test/legacy_test/test_math_op_patch_pir.py
Skip to content
Navigation Menu
{{ message }}
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Commit 8b6b703
authored
[Fix] Fix astype copy when target dtype is same as source Tensor (#69333)
* fix astype copy when target dtype is same as source Tensor
* fix annotations and refine unitest
* update
* update related code
* update unitest
* fix test_to_static_deprecated.py1 parent 5c4e4b4 commit 8b6b703Copy full SHA for 8b6b703
File tree
Expand file treeCollapse file tree
12 files changed
+62
-21
lines changedFilter options
- python/paddle
- base
- dygraph
- layers
- pir
- test
- amp
- deprecated/auto_parallel
- legacy_test
- xpu
Expand file treeCollapse file tree
12 files changed
+62
-21
lines changedpython/paddle/base/dygraph/math_op_patch.py
Copy file name to clipboardExpand all lines: python/paddle/base/dygraph/math_op_patch.py+6-1Lines changed: 6 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
74 | 74 |
| |
75 | 75 |
| |
76 | 76 |
| |
77 |
| - | |
| 77 | + | |
| 78 | + | |
78 | 79 |
| |
79 | 80 |
| |
80 | 81 |
| |
| |||
97 | 98 |
| |
98 | 99 |
| |
99 | 100 |
| |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
100 | 105 |
| |
101 | 106 |
| |
102 | 107 |
| |
|
python/paddle/base/framework.py
Copy file name to clipboardExpand all lines: python/paddle/base/framework.py+6-2Lines changed: 6 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1352 | 1352 |
| |
1353 | 1353 |
| |
1354 | 1354 |
| |
1355 |
| - | |
| 1355 | + | |
| 1356 | + | |
| 1357 | + | |
1356 | 1358 |
| |
1357 | 1359 |
| |
1358 | 1360 |
| |
| |||
1409 | 1411 |
| |
1410 | 1412 |
| |
1411 | 1413 |
| |
1412 |
| - | |
| 1414 | + | |
| 1415 | + | |
| 1416 | + | |
1413 | 1417 |
| |
1414 | 1418 |
| |
1415 | 1419 |
| |
|
python/paddle/base/layers/math_op_patch.py
Copy file name to clipboardExpand all lines: python/paddle/base/layers/math_op_patch.py+5-1Lines changed: 5 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
320 | 320 |
| |
321 | 321 |
| |
322 | 322 |
| |
323 |
| - | |
| 323 | + | |
| 324 | + | |
324 | 325 |
| |
325 | 326 |
| |
326 | 327 |
| |
| |||
366 | 367 |
| |
367 | 368 |
| |
368 | 369 |
| |
| 370 | + | |
| 371 | + | |
| 372 | + | |
369 | 373 |
| |
370 | 374 |
| |
371 | 375 |
| |
|
+4-3Lines changed: 4 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
| 15 | + | |
15 | 16 |
| |
16 | 17 |
| |
17 | 18 |
| |
| |||
99 | 100 |
| |
100 | 101 |
| |
101 | 102 |
| |
102 |
| - | |
| 103 | + | |
103 | 104 |
| |
104 | 105 |
| |
105 | 106 |
| |
| |||
108 | 109 |
| |
109 | 110 |
| |
110 | 111 |
| |
111 |
| - | |
| 112 | + | |
112 | 113 |
| |
113 | 114 |
| |
114 | 115 |
| |
| |||
123 | 124 |
| |
124 | 125 |
| |
125 | 126 |
| |
126 |
| - | |
| 127 | + | |
127 | 128 |
| |
128 | 129 |
| |
129 | 130 |
| |
|
python/paddle/pir/math_op_patch.py
Copy file name to clipboardExpand all lines: python/paddle/pir/math_op_patch.py+6-1Lines changed: 6 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
285 | 285 |
| |
286 | 286 |
| |
287 | 287 |
| |
288 |
| - | |
| 288 | + | |
| 289 | + | |
289 | 290 |
| |
290 | 291 |
| |
291 | 292 |
| |
| |||
316 | 317 |
| |
317 | 318 |
| |
318 | 319 |
| |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
319 | 324 |
| |
320 | 325 |
| |
321 | 326 |
| |
|
-1Lines changed: 0 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
472 | 472 |
| |
473 | 473 |
| |
474 | 474 |
| |
475 |
| - | |
476 | 475 |
| |
477 | 476 |
| |
478 | 477 |
| |
|
test/deprecated/auto_parallel/test_to_static_deprecated.py
Copy file name to clipboardExpand all lines: test/deprecated/auto_parallel/test_to_static_deprecated.py+2-2Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
112 | 112 |
| |
113 | 113 |
| |
114 | 114 |
| |
115 |
| - | |
| 115 | + | |
116 | 116 |
| |
117 | 117 |
| |
118 | 118 |
| |
| |||
122 | 122 |
| |
123 | 123 |
| |
124 | 124 |
| |
125 |
| - | |
| 125 | + | |
126 | 126 |
| |
127 | 127 |
| |
128 | 128 |
| |
|
test/legacy_test/test_adamw_op.py
Copy file name to clipboardExpand all lines: test/legacy_test/test_adamw_op.py+9-5Lines changed: 9 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
463 | 463 |
| |
464 | 464 |
| |
465 | 465 |
| |
466 |
| - | |
467 |
| - | |
468 |
| - | |
469 |
| - | |
470 |
| - | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
471 | 475 |
| |
472 | 476 |
| |
473 | 477 |
| |
|
test/legacy_test/test_math_op_patch.py
Copy file name to clipboardExpand all lines: test/legacy_test/test_math_op_patch.py+4Lines changed: 4 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
285 | 285 |
| |
286 | 286 |
| |
287 | 287 |
| |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
288 | 292 |
| |
289 | 293 |
| |
290 | 294 |
| |
|
test/legacy_test/test_math_op_patch_pir.py
Copy file name to clipboardExpand all lines: test/legacy_test/test_math_op_patch_pir.py+6Lines changed: 6 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
501 | 501 |
| |
502 | 502 |
| |
503 | 503 |
| |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
504 | 510 |
| |
505 | 511 |
| |
506 | 512 |
| |
|
You can’t perform that action at this time.
0 commit comments