Commit 00d400b
authored
Fix bug handling Adjoints in macros (#1698)
* Fix bug handling Adjoints in macros
* Explicitly call broadcast in destructive_add! instead of relying on lowering.
This is a work-around for a weird feature of Julia that doesn't propagate
adjoints properly through `.` broadcasts.
* Update parse_expr.jl
* Make tests catch adjoint bug properly
* Update macros.jl1 parent a6a9c6e commit 00d400b
2 files changed
+18
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
285 | 285 | | |
286 | 286 | | |
287 | 287 | | |
288 | | - | |
289 | | - | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
290 | 292 | | |
291 | 293 | | |
292 | 294 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
270 | 270 | | |
271 | 271 | | |
272 | 272 | | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
273 | 287 | | |
274 | 288 | | |
275 | 289 | | |
| |||
0 commit comments