File tree Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -22,14 +22,6 @@ adbackends = [
2222 Turing. AutoForwardDiff (; chunksize= 0 ), Turing. AutoReverseDiff (; compile= false )
2323]
2424
25- # Tapir isn't supported for older Julia versions, hence the check.
26- install_tapir = isdefined (Turing, :AutoTapir )
27- if install_tapir
28- # TODO (mhauru) Is there a better way to install optional dependencies like this?
29- Pkg. add (" Tapir" )
30- push! (adbackends, Turing. AutoTapir (false ))
31- end
32-
3325# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
3426# Stuff for checking that the right AD backend is being used.
3527
@@ -62,6 +54,15 @@ const eltypes_by_adtype = Dict(
6254 ),
6355)
6456
57+ # Tapir isn't supported for older Julia versions, hence the check.
58+ install_tapir = isdefined (Turing, :AutoTapir )
59+ if install_tapir
60+ # TODO (mhauru) Is there a better way to install optional dependencies like this?
61+ Pkg. add (" Tapir" )
62+ push! (adbackends, Turing. AutoTapir (false ))
63+ push! (eltypes_by_adtype, Turing. AutoTapir => (Tapir. CoDual,))
64+ end
65+
6566"""
6667 AbstractWrongADBackendError
6768
You can’t perform that action at this time.
0 commit comments