Skip to content

Commit

Permalink
Update tutorials/docs-10-using-turing-autodiff/autodiff.jmd
Browse files Browse the repository at this point in the history
  • Loading branch information
sunxd3 authored Dec 13, 2023
1 parent 12a8680 commit 1a43798
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tutorials/docs-10-using-turing-autodiff/autodiff.jmd
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ For instance, `if`-statements with conditions that can be determined at compile
However, `if`-statements that depend on the model parameters can take different branches during sampling; hence, the compiled tape might be incorrect.
Thus you must not use compiled tapes when your model makes decisions based on the model parameters, and you should be careful if you compute functions of parameters that those functions do not have branching which might cause them to execute different code for different values of the parameter.

For `Zygote`, pass `adtype=Turing.AutoZygote()` to the sampler constructor.
For `Zygote`, pass `adtype=AutoZygote()` to the sampler constructor.

And the previously used interfaces including `ADBackend`, `setadbackend`, `setsafe`, `setchunksize`, and `setrdcache()` are deprecated and removed.

Expand Down

0 comments on commit 1a43798

Please sign in to comment.