-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Forward mode mutable struct support #219
Conversation
7e3c80b
to
b507348
Compare
Changes in the ChainRulesCore PR make current status is WIP i know it is broken, and will fix after the long weekend. |
I merged #236 in here because i was running into code that was hitting the exact case that fixes in the tests. |
@@ -362,6 +363,6 @@ function forward_diff!(interp::ADInterpreter, ir::IRCode, src::CodeInfo, mi::Met | |||
rt = CC._ir_abstract_constant_propagation(interp, irsv) | |||
|
|||
ir = compact!(ir) | |||
|
|||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
7eb435b
to
09589cd
Compare
src/stage1/recurse_fwd.jl
Outdated
# It is a little dubious using StructuralTangent{B} for >1st order, but it is isomorphic. | ||
# Just watch out for order mixing bugs. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not even sure it is actually dubious. Further thought has convinced me its the right thing to do.
Ironically (?) at higher order it is not a structural tangent but rather a Natural tangent.
But eitherway it follows the requirement that it can be added to its base space to get a nother value in the base space. Its like Real
numbers in that way,
09589cd
to
0524b08
Compare
|
||
|
||
# while | ||
# @test times_three_while'(1.0) == 3.0 # hangs in 1.11 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we know why these hang? that seems bad.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, but its unrelated to this PR
more overloads for StaticArrays
9957226
to
8badafd
Compare
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #219 +/- ##
=======================================
Coverage 55.11% 55.12%
=======================================
Files 28 28
Lines 2892 2917 +25
=======================================
+ Hits 1594 1608 +14
- Misses 1298 1309 +11 ☔ View full report in Codecov by Sentry. |
Closes #189
Requires