Skip to content

Fix #76 - #170

Merged
mohdibntarek merged 1 commit into
masterfrom
mt/fix_76
Feb 28, 2021
Merged

mohdibntarek merged 1 commit into
masterfrom
mt/fix_76

Conversation

@mohdibntarek

Copy link
Copy Markdown
Member

This PR supersedes #90 and fixes #76.

@mohdibntarek mohdibntarek mentioned this pull request Feb 28, 2021
@triceert

Copy link
Copy Markdown

This actually broke my (correctly) working code using inplace assignments into preallocated vectors inside an ODE-system. What is exactly meant with "Please use ReverseDiff.value instead."? I cannot find documentation on it.

devmotion added a commit that referenced this pull request Sep 24, 2026
… gradient (#171) (#305)

The MWE in #171 fills a preallocated buffer with 5-arg `mul!` on views, and
ReverseDiff returned an all-zero gradient. With a `Float64` buffer, storing the
tracked products fell through to `convert(Float64, ::TrackedReal)`, which up to
v1.6.0 silently returned the value and severed the tape. #170 (v1.7.0) made
that conversion throw, a week before the issue was filed; with a buffer that
can hold tracked reals, the gradients were correct.

Nothing pinned either behaviour for this pattern.

Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

In-place assignment on strictly typed vectors does not report error

2 participants