Skip to content

Commit 15e089d

Browse files
authored
Fix backend display (#333)
1 parent feb17b0 commit 15e089d

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

DifferentiationInterface/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ This package provides a backend-agnostic syntax to differentiate functions of th
3232

3333
## Compatibility
3434

35-
We support all of the backends defined by [ADTypes.jl](https://github.com/SciML/ADTypes.jl) v1.0:
35+
We support all of the backends defined by [ADTypes.jl](https://github.com/SciML/ADTypes.jl):
3636

3737
- [ChainRulesCore.jl](https://github.com/JuliaDiff/ChainRulesCore.jl)
3838
- [Diffractor.jl](https://github.com/JuliaDiff/Diffractor.jl)

DifferentiationInterface/docs/src/backends.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ This page is about the latter, check out [that page](@ref "Operators") to learn
88
We support all dense backend choices from [ADTypes.jl](https://github.com/SciML/ADTypes.jl), as well as their sparse wrapper [`AutoSparse`](@extref ADTypes.AutoSparse).
99

1010
```@setup backends
11+
using ADTypes
1112
using DifferentiationInterface
1213
import Markdown
1314
@@ -26,8 +27,7 @@ import Zygote
2627
2728
backend_examples = [
2829
AutoDiffractor(),
29-
AutoEnzyme(; mode=Enzyme.Forward),
30-
AutoEnzyme(; mode=Enzyme.Reverse),
30+
AutoEnzyme(),
3131
AutoFastDifferentiation(),
3232
AutoFiniteDiff(),
3333
AutoFiniteDifferences(; fdm=FiniteDifferences.central_fdm(3, 1)),
@@ -52,7 +52,7 @@ println(io, "| Backend | Availability | Two-argument functions | Hessian support
5252
println(io, "|:--------|:------------:|:----------------------:|:---------------:|")
5353
5454
for b in backend_examples
55-
join(io, [string(b), unicode_check_available(b), unicode_check_twoarg(b), unicode_check_hessian(b)], '|')
55+
join(io, ["[`$(nameof(typeof(b)))`](@extref ADTypes)", unicode_check_available(b), unicode_check_twoarg(b), unicode_check_hessian(b)], '|')
5656
println(io, '|' )
5757
end
5858
backend_table = Markdown.parse(String(take!(io)))

0 commit comments

Comments
 (0)