Commit afa732f
Han Wang
fix(pt2): remove eliminate_dead_code from _strip_shape_assertions
Dead-code elimination after removing _assert_scalar nodes incorrectly
removes intermediate computation nodes that share sub-expressions with
the autograd gradient path, producing NaN forces for DPA1/se_atten in
the NoPBC case. Remove the eliminate_dead_code() call; the leftover
nodes are harmless unused scalar computations.1 parent b0096e0 commit afa732f
1 file changed
Lines changed: 11 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
37 | 48 | | |
38 | 49 | | |
39 | 50 | | |
| |||
42 | 53 | | |
43 | 54 | | |
44 | 55 | | |
45 | | - | |
46 | 56 | | |
47 | 57 | | |
48 | 58 | | |
| |||
0 commit comments