Commit d8a1097
authored
[DoubleGrad PR #8] Enabled triple grads for sigmoid and matmul (PaddlePaddle#41387)
* [Refactor] refactored eager_gen.py PR #2
* [DoubleGrad PR #1] Decoupled code generation logics for Dygraph ForwardFunctions and GradNodes
* Fixed minor issue
* Adjusted logics of GenerateNodeCreationCodes and GenerateForwardDefinition
* Fixed issues
* Supported higher-order grad node generation
* [DoubleGrad PR #4] Supported higher-order GradNode generation
* [DoubleGrad #4] Bug Fixes to Double Grad Node Generation
* Fixed yaml typo
* Fixed yaml typo
* fixed minor issues
* [DoubleGrad PR #5] Enabled gradient computations for grad_tensors passed to paddle.grad()
* Fixed minor issue
* Fixed CI-Inference issue
* Fixed CI-inference issues
* [DoubleGrad PR #7] paddle.grad() to copy backward graph before backward run
* Fixed minor issues
* Fixed issue with backward graph construction logic
* Fixed implementation issues with backward graph reconstruction
* Fixed unittest issue
* Fixed issues
* [DoubleGrad PR #8] Enabled triple grads for sigmoid and matmul
* Fixed issues with phi kernel
* Added triple grad test case
* Fixed minor issue1 parent 84e8ae7 commit d8a1097
File tree
9 files changed
+215
-37
lines changed- paddle
- fluid/eager/auto_code_generator/final_state_generator
- phi
- infermeta
- kernels
- impl
- ops/compat
- python/paddle
- fluid/tests/unittests
- utils/code_gen
9 files changed
+215
-37
lines changedLines changed: 4 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
25 | | - | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
26 | 28 | | |
27 | 29 | | |
28 | 30 | | |
| |||
171 | 173 | | |
172 | 174 | | |
173 | 175 | | |
174 | | - | |
175 | | - | |
176 | | - | |
177 | | - | |
178 | | - | |
179 | | - | |
180 | 176 | | |
181 | 177 | | |
182 | 178 | | |
| |||
Lines changed: 39 additions & 21 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
35 | 34 | | |
36 | 35 | | |
37 | 36 | | |
| |||
483 | 482 | | |
484 | 483 | | |
485 | 484 | | |
486 | | - | |
487 | 485 | | |
488 | 486 | | |
489 | | - | |
490 | 487 | | |
491 | 488 | | |
492 | 489 | | |
| |||
496 | 493 | | |
497 | 494 | | |
498 | 495 | | |
499 | | - | |
500 | 496 | | |
501 | 497 | | |
502 | 498 | | |
503 | | - | |
504 | 499 | | |
505 | 500 | | |
506 | 501 | | |
| |||
1133 | 1128 | | |
1134 | 1129 | | |
1135 | 1130 | | |
| 1131 | + | |
| 1132 | + | |
| 1133 | + | |
1136 | 1134 | | |
1137 | 1135 | | |
1138 | 1136 | | |
1139 | 1137 | | |
1140 | 1138 | | |
| 1139 | + | |
| 1140 | + | |
| 1141 | + | |
| 1142 | + | |
| 1143 | + | |
| 1144 | + | |
1141 | 1145 | | |
1142 | 1146 | | |
1143 | 1147 | | |
| |||
1147 | 1151 | | |
1148 | 1152 | | |
1149 | 1153 | | |
| 1154 | + | |
| 1155 | + | |
| 1156 | + | |
| 1157 | + | |
| 1158 | + | |
| 1159 | + | |
| 1160 | + | |
| 1161 | + | |
| 1162 | + | |
| 1163 | + | |
| 1164 | + | |
| 1165 | + | |
| 1166 | + | |
| 1167 | + | |
| 1168 | + | |
| 1169 | + | |
1150 | 1170 | | |
1151 | 1171 | | |
1152 | 1172 | | |
| |||
1164 | 1184 | | |
1165 | 1185 | | |
1166 | 1186 | | |
| 1187 | + | |
| 1188 | + | |
1167 | 1189 | | |
1168 | 1190 | | |
1169 | 1191 | | |
| |||
1253 | 1275 | | |
1254 | 1276 | | |
1255 | 1277 | | |
1256 | | - | |
1257 | | - | |
| 1278 | + | |
1258 | 1279 | | |
1259 | 1280 | | |
1260 | 1281 | | |
| |||
1274 | 1295 | | |
1275 | 1296 | | |
1276 | 1297 | | |
1277 | | - | |
1278 | | - | |
| 1298 | + | |
1279 | 1299 | | |
1280 | 1300 | | |
1281 | 1301 | | |
| |||
1316 | 1336 | | |
1317 | 1337 | | |
1318 | 1338 | | |
1319 | | - | |
1320 | | - | |
| 1339 | + | |
1321 | 1340 | | |
1322 | 1341 | | |
1323 | 1342 | | |
| |||
1339 | 1358 | | |
1340 | 1359 | | |
1341 | 1360 | | |
1342 | | - | |
1343 | | - | |
| 1361 | + | |
1344 | 1362 | | |
1345 | 1363 | | |
1346 | 1364 | | |
| |||
1358 | 1376 | | |
1359 | 1377 | | |
1360 | 1378 | | |
1361 | | - | |
1362 | | - | |
| 1379 | + | |
1363 | 1380 | | |
1364 | 1381 | | |
1365 | 1382 | | |
| |||
1382 | 1399 | | |
1383 | 1400 | | |
1384 | 1401 | | |
1385 | | - | |
1386 | | - | |
| 1402 | + | |
1387 | 1403 | | |
1388 | 1404 | | |
1389 | 1405 | | |
| |||
1417 | 1433 | | |
1418 | 1434 | | |
1419 | 1435 | | |
1420 | | - | |
1421 | | - | |
| 1436 | + | |
1422 | 1437 | | |
1423 | 1438 | | |
1424 | 1439 | | |
| |||
1441 | 1456 | | |
1442 | 1457 | | |
1443 | 1458 | | |
| 1459 | + | |
| 1460 | + | |
| 1461 | + | |
1444 | 1462 | | |
1445 | 1463 | | |
1446 | 1464 | | |
| |||
1457 | 1475 | | |
1458 | 1476 | | |
1459 | 1477 | | |
1460 | | - | |
1461 | | - | |
1462 | 1478 | | |
1463 | 1479 | | |
1464 | 1480 | | |
| 1481 | + | |
| 1482 | + | |
1465 | 1483 | | |
1466 | 1484 | | |
1467 | 1485 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
206 | 206 | | |
207 | 207 | | |
208 | 208 | | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
209 | 257 | | |
210 | 258 | | |
211 | 259 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
99 | 119 | | |
100 | 120 | | |
101 | 121 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
125 | 125 | | |
126 | 126 | | |
127 | 127 | | |
128 | | - | |
129 | 128 | | |
| 129 | + | |
130 | 130 | | |
131 | 131 | | |
132 | 132 | | |
133 | 133 | | |
134 | 134 | | |
135 | 135 | | |
136 | | - | |
137 | 136 | | |
138 | | - | |
| 137 | + | |
139 | 138 | | |
| 139 | + | |
140 | 140 | | |
141 | 141 | | |
142 | 142 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
243 | 243 | | |
244 | 244 | | |
245 | 245 | | |
246 | | - | |
247 | 246 | | |
| 247 | + | |
248 | 248 | | |
249 | 249 | | |
250 | 250 | | |
| |||
262 | 262 | | |
263 | 263 | | |
264 | 264 | | |
265 | | - | |
266 | 265 | | |
267 | | - | |
| 266 | + | |
268 | 267 | | |
| 268 | + | |
269 | 269 | | |
270 | 270 | | |
271 | 271 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
139 | 139 | | |
140 | 140 | | |
141 | 141 | | |
142 | | - | |
| 142 | + | |
143 | 143 | | |
144 | 144 | | |
145 | 145 | | |
146 | 146 | | |
147 | 147 | | |
148 | | - | |
| 148 | + | |
149 | 149 | | |
150 | 150 | | |
151 | 151 | | |
| |||
0 commit comments