Skip to content

Commit bccf4e2

Browse files
authored
Add DI warning to AutoEnzyme
1 parent 623e6af commit bccf4e2

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/dense.jl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,11 @@ Struct used to select the [Enzyme.jl](https://github.com/EnzymeAD/Enzyme.jl) bac
4545
4646
Defined by [ADTypes.jl](https://github.com/SciML/ADTypes.jl).
4747
48+
!!! warning
49+
`AutoEnzyme` can be used by [DifferentiationInterface.jl](https://github.com/JuliaDiff/DifferentiationInterface.jl) to access a restricted subset of Enzyme.jl functionality.
50+
If your code or one of its dependencies computes derivatives through DifferentiationInterface.jl, you might experience slowdowns or errors that would not happen with Enzyme.jl's native API.
51+
In that case, please refer to the [Enzyme.jl documentation](https://enzymead.github.io/Enzyme.jl/stable/) for details on how to call its native API.
52+
4853
# Constructors
4954
5055
AutoEnzyme(; mode::M=nothing, function_annotation::Type{A}=Nothing)

0 commit comments

Comments
 (0)