From bb5d970d5dee182ad09ccc4557a9f2f076c0d6c9 Mon Sep 17 00:00:00 2001 From: Vaibhav Dixit Date: Tue, 25 Jul 2023 11:37:19 -0400 Subject: [PATCH] Keep nonkwarg constructor for nonbreakability --- src/ADTypes.jl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/ADTypes.jl b/src/ADTypes.jl index 2b2fca8..831d1e2 100644 --- a/src/ADTypes.jl +++ b/src/ADTypes.jl @@ -30,6 +30,10 @@ function AutoForwardDiff(; chunksize = nothing, tag = nothing) AutoForwardDiff{chunksize,typeof(tag)}(tag) end +function AutoForwardDiff(chunksize = nothing; tag = nothing) + AutoForwardDiff{chunksize,typeof(tag)}(tag) +end + struct AutoReverseDiff <: AbstractADType compile::Bool end