CARVIEW |
Select Language
HTTP/2 200
date: Thu, 24 Jul 2025 07:51:34 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/"8d80b42b65d9f3d3b75b228022080acf"
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=anfqEDEAceiJxYuOYfgbHTg%2FtL%2F5NcWKTElQ9d6EkGXUBQfOyCq3pgYPNkXE4CKRPvp%2BDFFYPdJ9RCQYLAPYMSgKWqSKAqy0YjtzKLRi7tV5DUMV%2BV8IevOYepUfUjlagXJnn11cEFJhWdxf0rrnG3yJhPoc38KndlZ5MJbZFgtrAeJ2xeqF1SibssVUn39zxtU0M9AHYbGdsDpeJzJpmNYFT7%2FdvdHNbglqD3vewMtiBy%2FeY7%2FMk9eDSbTGBZoEYMzCv553FlduD3uJFq8RSw%3D%3D--9vcqCEt3unVQR%2BuB--YMr5M3PD9rsaBYxgjYjhOg%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.931714797.1753343494; Path=/; Domain=github.com; Expires=Fri, 24 Jul 2026 07:51:34 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Fri, 24 Jul 2026 07:51:34 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: CBA8:EE750:663C0A:7FC9F7:6881E606
[dy2static]implement tensor.cuda() in static graph (#56092) · PaddlePaddle/Paddle@a6a4985 · GitHub
Copy file name to clipboardExpand all lines: paddle/fluid/framework/new_executor/interpreter/interpreter_util.cc
Copy file name to clipboardExpand all lines: python/paddle/fluid/layers/math_op_patch.py
Copy file name to clipboardExpand all lines: test/dygraph_to_static/test_tensor_memcpy_on_cpu.py
Copy file name to clipboardExpand all lines: test/dygraph_to_static/test_tensor_memcpy_on_gpu.py
Skip to content
Navigation Menu
{{ message }}
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Commit a6a4985
authored
[dy2static]implement tensor.cuda() in static graph (#56092)
* [dy2static]implement tensor.cuda() in static graph
* [dy2static]implement tensor.cuda() in static graph - change the patch place
* [dy2static]implement tensor.cuda() in static graph - fix code-block in comment
* [dy2static]implement tensor.cuda() in static graph - add ut for warning branch1 parent 6eaed2d commit a6a4985Copy full SHA for a6a4985
File tree
Expand file treeCollapse file tree
4 files changed
+258
-8
lines changedFilter options
- paddle/fluid/framework/new_executor/interpreter
- python/paddle/fluid/layers
- test/dygraph_to_static
Expand file treeCollapse file tree
4 files changed
+258
-8
lines changedpaddle/fluid/framework/new_executor/interpreter/interpreter_util.cc
Copy file name to clipboardExpand all lines: paddle/fluid/framework/new_executor/interpreter/interpreter_util.cc+55-2Lines changed: 55 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
476 | 476 |
| |
477 | 477 |
| |
478 | 478 |
| |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
479 | 529 |
| |
480 | 530 |
| |
481 | 531 |
| |
| |||
537 | 587 |
| |
538 | 588 |
| |
539 | 589 |
| |
| 590 | + | |
| 591 | + | |
540 | 592 |
| |
541 | 593 |
| |
542 | 594 |
| |
| |||
655 | 707 |
| |
656 | 708 |
| |
657 | 709 |
| |
658 |
| - | |
659 |
| - | |
| 710 | + | |
| 711 | + | |
| 712 | + | |
660 | 713 |
| |
661 | 714 |
| |
662 | 715 |
| |
|
python/paddle/fluid/layers/math_op_patch.py
Copy file name to clipboardExpand all lines: python/paddle/fluid/layers/math_op_patch.py+51-6Lines changed: 51 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
146 | 146 |
| |
147 | 147 |
| |
148 | 148 |
| |
| 149 | + | |
149 | 150 |
| |
150 | 151 |
| |
151 | 152 |
| |
| |||
162 | 163 |
| |
163 | 164 |
| |
164 | 165 |
| |
165 |
| - | |
| 166 | + | |
166 | 167 |
| |
167 | 168 |
| |
168 | 169 |
| |
| |||
173 | 174 |
| |
174 | 175 |
| |
175 | 176 |
| |
176 |
| - | |
| 177 | + | |
177 | 178 |
| |
178 |
| - | |
179 |
| - | |
180 |
| - | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
181 | 203 |
| |
182 |
| - | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
183 | 228 |
| |
184 | 229 |
| |
185 | 230 |
| |
|
test/dygraph_to_static/test_tensor_memcpy_on_cpu.py
Copy file name to clipboardExpand all lines: test/dygraph_to_static/test_tensor_memcpy_on_cpu.py+76Lines changed: 76 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
26 | 26 |
| |
27 | 27 |
| |
28 | 28 |
| |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
29 | 43 |
| |
30 | 44 |
| |
31 | 45 |
| |
| |||
46 | 60 |
| |
47 | 61 |
| |
48 | 62 |
| |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
49 | 125 |
| |
50 | 126 |
|
test/dygraph_to_static/test_tensor_memcpy_on_gpu.py
Copy file name to clipboardExpand all lines: test/dygraph_to_static/test_tensor_memcpy_on_gpu.py+76Lines changed: 76 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
27 | 27 |
| |
28 | 28 |
| |
29 | 29 |
| |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
30 | 44 |
| |
31 | 45 |
| |
32 | 46 |
| |
| |||
53 | 67 |
| |
54 | 68 |
| |
55 | 69 |
| |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
56 | 132 |
| |
57 | 133 |
|
You can’t perform that action at this time.
0 commit comments