Skip to content

Commit b948a45

Browse files
committed
Deprecate AutoTapir
1 parent 149c655 commit b948a45

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

src/dense.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -351,8 +351,8 @@ mode(::AutoSymbolics) = SymbolicMode()
351351
352352
Tapir.jl has been renamed to Mooncake.jl. Please use `AutoMooncake` instead of this type.
353353
"""
354-
Base.@kwdef struct AutoTapir <: AbstractADType
355-
safe_mode::Bool = true
354+
struct AutoTapir <: AbstractADType
355+
safe_mode::Bool
356356
end
357357

358358
mode(::AutoTapir) = ReverseMode()

src/legacy.jl

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,9 @@ function AutoModelingToolkit(; obj_sparse::Bool = false, cons_sparse::Bool = fal
3737
return mtk_to_symbolics(obj_sparse, cons_sparse)
3838
end
3939

40-
@deprecate AutoTapir AutoMooncake
40+
function AutoTapir(; safe_mode=true)
41+
Base.depwarn(
42+
"AutoTapir is deprecated in favour of AutoMooncake.", :AutoTapir; force=false
43+
)
44+
return AutoTapir(safe_mode)
45+
end

0 commit comments

Comments
 (0)