CARVIEW |
Select Language
HTTP/2 200
date: Sun, 27 Jul 2025 20:40:42 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/"6eddaf778af3ed972f9242e6a878f301"
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=xWB%2BQ64ilhnkqKcseIZbKfP0HnP22GEWxx3qvq7luvDzTwCUSWvqz2tFwkW%2BvwOmM7wmTUCaghS9fXzCRFh6E0BFqWXjCGGA3WD9fdbBUneD%2BZvXvYulVChKnRra74x1vRoiWE52MIKkDa4wR3oK6%2BpcwAbeMpZwYyenki1oQuUiM0P5EMmp8itz4E02KrGmz3jHw7fWn2fSOpnaEVLTdA8ufj3jOjwOPDQm5D364jvg0yg9YNFbFc9vT34gBteW9j8SJJSoYuOXRbEt6Ml1UQ%3D%3D--PmHUL9NvI3klJgzy--mjCCTQeG7A5C6PNsQ2qgCg%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.2047272444.1753648841; Path=/; Domain=github.com; Expires=Mon, 27 Jul 2026 20:40:41 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Mon, 27 Jul 2026 20:40:41 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: C32E:15E61D:10C6976:15D5152:68868EC9
fix model run error when use auto parallel and recompute(use_reentran… · PaddlePaddle/Paddle@86206c8 · GitHub
Copy file name to clipboardExpand all lines: paddle/fluid/eager/tensor_wrapper.h
Copy file name to clipboardExpand all lines: paddle/fluid/pybind/eager.cc
Copy file name to clipboardExpand all lines: python/paddle/distributed/fleet/recompute/recompute.py
Copy file name to clipboardExpand all lines: test/auto_parallel/semi_auto_parallel_simple_net.py
Copy file name to clipboardExpand all lines: test/auto_parallel/semi_auto_parallel_simple_net_recompute.py
Skip to content
Navigation Menu
{{ message }}
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Commit 86206c8
authored
fix model run error when use auto parallel and recompute(use_reentrant=false) (#65188)
* fix model run error when auto parallel and recompute and use_reentrant=false
* solve the defect of TensorWrapper not considering DistTensor
* add unittest
* fix recompute have not support cpu when use_reentrant is false1 parent 21dd906 commit 86206c8Copy full SHA for 86206c8
File tree
Expand file treeCollapse file tree
5 files changed
+205
-37
lines changedFilter options
- paddle/fluid
- eager
- pybind
- python/paddle/distributed/fleet/recompute
- test/auto_parallel
Expand file treeCollapse file tree
5 files changed
+205
-37
lines changedpaddle/fluid/eager/tensor_wrapper.h
Copy file name to clipboardExpand all lines: paddle/fluid/eager/tensor_wrapper.h+22-2Lines changed: 22 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
152 | 152 |
| |
153 | 153 |
| |
154 | 154 |
| |
155 |
| - | |
156 |
| - | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
157 | 171 |
| |
| 172 | + | |
158 | 173 |
| |
159 | 174 |
| |
160 | 175 |
| |
| 176 | + | |
161 | 177 |
| |
162 | 178 |
| |
163 | 179 |
| |
164 | 180 |
| |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
165 | 185 |
| |
166 | 186 |
| |
167 | 187 |
| |
|
paddle/fluid/pybind/eager.cc
Copy file name to clipboardExpand all lines: paddle/fluid/pybind/eager.cc+113-27Lines changed: 113 additions & 27 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
47 | 47 |
| |
48 | 48 |
| |
49 | 49 |
| |
| 50 | + | |
50 | 51 |
| |
51 | 52 |
| |
52 | 53 |
| |
53 | 54 |
| |
| 55 | + | |
54 | 56 |
| |
55 | 57 |
| |
56 | 58 |
| |
| |||
81 | 83 |
| |
82 | 84 |
| |
83 | 85 |
| |
84 |
| - | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
85 | 89 |
| |
86 | 90 |
| |
87 | 91 |
| |
88 | 92 |
| |
89 | 93 |
| |
90 | 94 |
| |
91 | 95 |
| |
92 |
| - | |
93 |
| - | |
94 |
| - | |
95 |
| - | |
96 |
| - | |
97 |
| - | |
98 |
| - | |
99 |
| - | |
100 |
| - | |
101 |
| - | |
102 |
| - | |
103 |
| - | |
104 |
| - | |
105 |
| - | |
106 |
| - | |
| 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 | + | |
107 | 130 |
| |
108 |
| - | |
109 |
| - | |
110 |
| - | |
111 |
| - | |
112 |
| - | |
113 | 131 |
| |
114 | 132 |
| |
115 | 133 |
| |
| |||
768 | 786 |
| |
769 | 787 |
| |
770 | 788 |
| |
| 789 | + | |
| 790 | + | |
771 | 791 |
| |
772 | 792 |
| |
773 | 793 |
| |
774 | 794 |
| |
775 | 795 |
| |
776 |
| - | |
| 796 | + | |
| 797 | + | |
| 798 | + | |
777 | 799 |
| |
778 | 800 |
| |
779 | 801 |
| |
| |||
797 | 819 |
| |
798 | 820 |
| |
799 | 821 |
| |
800 |
| - | |
| 822 | + | |
801 | 823 |
| |
802 | 824 |
| |
803 | 825 |
| |
| |||
806 | 828 |
| |
807 | 829 |
| |
808 | 830 |
| |
809 |
| - | |
| 831 | + | |
810 | 832 |
| |
811 | 833 |
| |
812 | 834 |
| |
| |||
995 | 1017 |
| |
996 | 1018 |
| |
997 | 1019 |
| |
| 1020 | + | |
| 1021 | + | |
| 1022 | + | |
| 1023 | + | |
| 1024 | + | |
| 1025 | + | |
| 1026 | + | |
| 1027 | + | |
| 1028 | + | |
| 1029 | + | |
| 1030 | + | |
| 1031 | + | |
998 | 1032 |
| |
999 | 1033 |
| |
1000 | 1034 |
| |
1001 | 1035 |
| |
1002 | 1036 |
| |
1003 | 1037 |
| |
1004 | 1038 |
| |
1005 |
| - | |
| 1039 | + | |
| 1040 | + | |
| 1041 | + | |
1006 | 1042 |
| |
1007 | 1043 |
| |
1008 | 1044 |
| |
| |||
1025 | 1061 |
| |
1026 | 1062 |
| |
1027 | 1063 |
| |
1028 |
| - | |
| 1064 | + | |
1029 | 1065 |
| |
1030 | 1066 |
| |
1031 | 1067 |
| |
1032 | 1068 |
| |
1033 |
| - | |
| 1069 | + | |
1034 | 1070 |
| |
1035 | 1071 |
| |
1036 | 1072 |
| |
| |||
1137 | 1173 |
| |
1138 | 1174 |
| |
1139 | 1175 |
| |
| 1176 | + | |
| 1177 | + | |
| 1178 | + | |
| 1179 | + | |
| 1180 | + | |
| 1181 | + | |
| 1182 | + | |
| 1183 | + | |
| 1184 | + | |
| 1185 | + | |
| 1186 | + | |
| 1187 | + | |
| 1188 | + | |
| 1189 | + | |
| 1190 | + | |
| 1191 | + | |
| 1192 | + | |
| 1193 | + | |
| 1194 | + | |
| 1195 | + | |
| 1196 | + | |
| 1197 | + | |
| 1198 | + | |
| 1199 | + | |
| 1200 | + | |
| 1201 | + | |
| 1202 | + | |
| 1203 | + | |
| 1204 | + | |
| 1205 | + | |
| 1206 | + | |
| 1207 | + | |
| 1208 | + | |
| 1209 | + | |
| 1210 | + | |
| 1211 | + | |
| 1212 | + | |
| 1213 | + | |
| 1214 | + | |
| 1215 | + | |
| 1216 | + | |
| 1217 | + | |
| 1218 | + | |
| 1219 | + | |
| 1220 | + | |
| 1221 | + | |
| 1222 | + | |
| 1223 | + | |
| 1224 | + | |
| 1225 | + | |
1140 | 1226 |
| |
1141 | 1227 |
| |
1142 | 1228 |
| |
|
python/paddle/distributed/fleet/recompute/recompute.py
Copy file name to clipboardExpand all lines: python/paddle/distributed/fleet/recompute/recompute.py+22-7Lines changed: 22 additions & 7 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
295 | 295 |
| |
296 | 296 |
| |
297 | 297 |
| |
| 298 | + | |
| 299 | + | |
298 | 300 |
| |
299 | 301 |
| |
300 | 302 |
| |
| |||
346 | 348 |
| |
347 | 349 |
| |
348 | 350 |
| |
349 |
| - | |
350 |
| - | |
351 |
| - | |
352 |
| - | |
353 |
| - | |
354 |
| - | |
355 |
| - | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
356 | 371 |
| |
357 | 372 |
| |
358 | 373 |
| |
|
test/auto_parallel/semi_auto_parallel_simple_net.py
Copy file name to clipboardExpand all lines: test/auto_parallel/semi_auto_parallel_simple_net.py+6-1Lines changed: 6 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
40 | 40 |
| |
41 | 41 |
| |
42 | 42 |
| |
| 43 | + | |
43 | 44 |
| |
44 | 45 |
| |
45 | 46 |
| |
| |||
50 | 51 |
| |
51 | 52 |
| |
52 | 53 |
| |
| 54 | + | |
53 | 55 |
| |
54 | 56 |
| |
55 | 57 |
| |
| |||
70 | 72 |
| |
71 | 73 |
| |
72 | 74 |
| |
73 |
| - | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
74 | 79 |
| |
75 | 80 |
| |
76 | 81 |
| |
|
test/auto_parallel/semi_auto_parallel_simple_net_recompute.py
Copy file name to clipboardExpand all lines: test/auto_parallel/semi_auto_parallel_simple_net_recompute.py+42Lines changed: 42 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
81 | 81 |
| |
82 | 82 |
| |
83 | 83 |
| |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
84 | 103 |
| |
85 | 104 |
| |
86 | 105 |
| |
| |||
98 | 117 |
| |
99 | 118 |
| |
100 | 119 |
| |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
101 | 141 |
| |
102 | 142 |
| |
| 143 | + | |
103 | 144 |
| |
| 145 | + | |
104 | 146 |
| |
105 | 147 |
| |
106 | 148 |
| |
|
You can’t perform that action at this time.
0 commit comments