Skip to content

Conversation

@devmotion
Copy link
Member

This PR fixes an inconsistency observed in #1400 which leads to different AD settings depending on whether setadbackend(::Symbol) or setadbackend(::Val) is called. Moreover, it separates the deprecations into a separate file so that (hopefully) we don't forget to remove them in the next breaking release. Additionally, ZygoteRules is used instead of Zygote inside of a @require block, hopefully eliminating potential precompilation and loading time issues for Zygote similar to those observed for ReverseDiff in #1400.

@codecov
Copy link

codecov bot commented Sep 6, 2020

Codecov Report

Merging #1401 into master will increase coverage by 0.06%.
The diff coverage is 78.94%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1401      +/-   ##
==========================================
+ Coverage   66.95%   67.01%   +0.06%     
==========================================
  Files          25       25              
  Lines        1619     1616       -3     
==========================================
- Hits         1084     1083       -1     
+ Misses        535      533       -2     
Impacted Files Coverage Δ
src/core/Core.jl 100.00% <ø> (ø)
src/core/compat/reversediff.jl 90.47% <ø> (ø)
src/core/deprecations.jl 0.00% <0.00%> (ø)
src/core/ad.jl 84.72% <100.00%> (+10.47%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e1ab7e0...b68f4a4. Read the comment docs.

bors bot pushed a commit to TuringLang/DynamicPPL.jl that referenced this pull request Sep 7, 2020
This PR moves the definition of the adjoint for `updategid!` to DynamicPPL and replaces ZygoteRules with ChainRulesCore, as mentioned in a comment in TuringLang/Turing.jl#1401.
bors bot pushed a commit to TuringLang/DynamicPPL.jl that referenced this pull request Sep 7, 2020
This PR moves the definition of the adjoint for `updategid!` to DynamicPPL and replaces ZygoteRules with ChainRulesCore, as mentioned in a comment in TuringLang/Turing.jl#1401.
@devmotion devmotion closed this Sep 8, 2020
@devmotion devmotion reopened this Sep 8, 2020
@devmotion devmotion closed this Sep 8, 2020
@devmotion devmotion reopened this Sep 8, 2020
@devmotion
Copy link
Member Author

PkgServer lags behind (again)... The new DynamicPPL release is not available in CI yet. Just have to retry until it works.

@devmotion devmotion closed this Sep 8, 2020
@devmotion devmotion reopened this Sep 8, 2020
@devmotion devmotion closed this Sep 8, 2020
@devmotion devmotion reopened this Sep 8, 2020
@devmotion devmotion requested review from cpfiffer and yebai September 8, 2020 21:28
Copy link
Member

@cpfiffer cpfiffer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@devmotion devmotion merged commit 18cdd35 into master Sep 13, 2020
@devmotion devmotion deleted the ad branch September 13, 2020 17:03
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.

3 participants