From bccf4e21b30643a31329eed5f6adf1f3f914d6f6 Mon Sep 17 00:00:00 2001 From: Guillaume Dalle <22795598+gdalle@users.noreply.github.com> Date: Sat, 31 May 2025 10:17:40 +0200 Subject: [PATCH] Add DI warning to AutoEnzyme --- src/dense.jl | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/dense.jl b/src/dense.jl index ff7b732..a87a9b5 100644 --- a/src/dense.jl +++ b/src/dense.jl @@ -45,6 +45,11 @@ Struct used to select the [Enzyme.jl](https://github.com/EnzymeAD/Enzyme.jl) bac Defined by [ADTypes.jl](https://github.com/SciML/ADTypes.jl). +!!! warning + `AutoEnzyme` can be used by [DifferentiationInterface.jl](https://github.com/JuliaDiff/DifferentiationInterface.jl) to access a restricted subset of Enzyme.jl functionality. + 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. + 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. + # Constructors AutoEnzyme(; mode::M=nothing, function_annotation::Type{A}=Nothing)