Skip to content

Commit 995986a

Browse files
committed
More explicit docstring
1 parent 7984564 commit 995986a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/dense.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ Defined by [ADTypes.jl](https://github.com/SciML/ADTypes.jl).
5050
AutoEnzyme(; mode=nothing, constant_function::Bool=false)
5151
5252
The `constant_function` keyword argument (and type parameter) determines whether the function object itself should be considered constant or not during differentiation with Enzyme.jl.
53-
For simple functions, this should usually be set to `false`, but in the case of closures or callable structs which contain differentiated data, it should be set to `true`.
53+
For simple functions, `constant_function` should usually be set to `false`, but in the case of closures or callable structs which contain differentiated data that can be treated as constant, `constant_function` should be set to `true` for increased performance.
5454
5555
# Fields
5656

0 commit comments

Comments
 (0)