Commit dbd9508
Add test for Sophia + ComponentArrays + Enzyme shadow generation fix
This test verifies that the Sophia optimizer works correctly with
ComponentArrays and Enzyme autodiff without encountering the shadow
generation MethodError that was previously occurring.
The test uses the existing minibatch test setup with ComponentArrays
and creates an AutoEnzyme optimization function to ensure the fix
works in the specific combination that was failing.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <[email protected]>1 parent edb45ad commit dbd9508
1 file changed
+9
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
74 | 83 | | |
75 | 84 | | |
76 | 85 | | |
| |||
0 commit comments