Skip to content

Commit 149c655

Browse files
committed
Deprecate AutoTapir
1 parent d6c521c commit 149c655

File tree

3 files changed

+7
-17
lines changed

3 files changed

+7
-17
lines changed

src/dense.jl

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -349,23 +349,7 @@ mode(::AutoSymbolics) = SymbolicMode()
349349
"""
350350
AutoTapir
351351
352-
Struct used to select the [Tapir.jl](https://github.com/withbayes/Tapir.jl) backend for automatic differentiation.
353-
354-
Defined by [ADTypes.jl](https://github.com/SciML/ADTypes.jl).
355-
356-
# Constructors
357-
358-
AutoTapir(; safe_mode=true)
359-
360-
# Fields
361-
362-
- `safe_mode::Bool`: whether to run additional checks to catch errors early. While this is
363-
on by default to ensure that users are aware of this option, you should generally turn
364-
it off for actual use, as it has substantial performance implications.
365-
If you encounter a problem with using Tapir (it fails to differentiate a function, or
366-
something truly nasty like a segfault occurs), then you should try switching `safe_mode`
367-
on and look at what happens. Often errors are caught earlier and the error messages are
368-
more useful.
352+
Tapir.jl has been renamed to Mooncake.jl. Please use `AutoMooncake` instead of this type.
369353
"""
370354
Base.@kwdef struct AutoTapir <: AbstractADType
371355
safe_mode::Bool = true

src/legacy.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,5 @@ function AutoModelingToolkit(; obj_sparse::Bool = false, cons_sparse::Bool = fal
3636
:AutoModelingToolkit; force = false)
3737
return mtk_to_symbolics(obj_sparse, cons_sparse)
3838
end
39+
40+
@deprecate AutoTapir AutoMooncake

test/legacy.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,3 +68,7 @@ end
6868
ad = @test_deprecated AutoReverseDiff(true)
6969
@test ad.compile
7070
end
71+
72+
@testset "AutoTapir" begin
73+
@test_deprecated AutoTapir()
74+
end

0 commit comments

Comments
 (0)