Skip to content

Commit

Permalink
[Docs] Add missing warning from #3836
Browse files Browse the repository at this point in the history
Looks like the warning got dropped before merging
  • Loading branch information
wsmoses authored Oct 8, 2024
1 parent e78a3a4 commit 00fdf92
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docs/src/tutorials/nonlinear/operator_ad.jl
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,11 @@ enzyme_rosenbrock()
# is a package that provides an abstraction layer across a few underlying
# autodiff libraries.

# !!! warning
# While DI makes it easier to experiment with different autodiff tools, this comes at a cost.
# In particular, DI may produce slower derivatives than using an AD tool directly, and sometimes fail to work at all.
# For example, in this code passing AutoEnzyme to DI fails to differentiate the code which is supported when directly calling Enzyme, like above.

# All the necessary information about your choice of underlying autodiff
# package is encoded in a "backend object" like this one:

Expand Down

0 comments on commit 00fdf92

Please sign in to comment.