You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Address review feedback: correctness, clarity, and robustness fixes
- ForwardDiff: use DiffResults (via ForwardDiff.DiffResults) for single-pass
value+gradient, removing the double primal evaluation
- ForwardDiff: remove redundant chunk_size guard in _prepare_gradient
(tweak_adtype already normalises it to a concrete positive integer)
- AutoMooncakeForward: handle empty params edge case (loop doesn't execute)
- Mooncake _cache_config: use Accessors.@set to preserve all Config fields
when overriding friendly_tangents=false, instead of forwarding only two
known fields
- Mooncake @compile_workload: remove redundant single-element for-loop
- EnzymeExt: document that adtype.mode is intentionally ignored (always reverse)
- src/logdensityfunction.jl: add fallback error for _value_and_gradient with
unknown AD backends, pointing users to ForwardDiff (the default) or DI
- test/logdensityfunction.jl: revert formatter noise (accumulate_assume!!,
accumulate_observe!!, ::Type{T}=... syntax)
- test/Project.toml: remove accidentally-added DynamicPPL dep
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
0 commit comments