Skip to content

Commit 4b63316

Browse files
committed
Rename NoAutoDiffAvailable to NoAutoDiffSelected
1 parent fca418e commit 4b63316

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

docs/src/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ ADTypes.NoColoringAlgorithm
9696

9797
```@docs
9898
NoAutoDiff
99-
NoAutoDiffAvailable
99+
NoAutoDiffSelected
100100
```
101101

102102
## Modes

src/ADTypes.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export AutoChainRules,
4747
AutoTracker,
4848
AutoZygote,
4949
NoAutoDiff,
50-
NoAutoDiffAvailable
50+
NoAutoDiffSelected
5151
@public AbstractMode
5252
@public ForwardMode, ReverseMode, ForwardOrReverseMode, SymbolicMode
5353
@public mode

src/dense.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -530,17 +530,17 @@ Defined by [ADTypes.jl](https://github.com/SciML/ADTypes.jl).
530530
struct NoAutoDiff <: AbstractADType end
531531

532532
"""
533-
NoAutoDiffAvailable <: Exception
533+
NoAutoDiffSelected <: Exception
534534
535535
Signifies that code tried to use automatic differentiation, but
536536
`NoAutoDiff`(@ref) was specified.
537537
"""
538-
struct NoAutoDiffAvailable <: Exception
538+
struct NoAutoDiffSelected <: Exception
539539
msg::AbstractString
540540
end
541541

542-
NoAutoDiffAvailable() = NoAutoDiffAvailable("Automatic differentiation can not be used with NoAutoDiff()")
542+
NoAutoDiffSelected() = NoAutoDiffSelected("Automatic differentiation can not be used with NoAutoDiff()")
543543

544544
function mode(::NoAutoDiff)
545-
throw(NoAutoDiffAvailable())
545+
throw(NoAutoDiffSelected())
546546
end

test/dense.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,5 +231,5 @@ end
231231
ad = NoAutoDiff()
232232
@test ad isa AbstractADType
233233
@test ad isa NoAutoDiff
234-
@test_throws NoAutoDiffAvailable mode(ad)
234+
@test_throws NoAutoDiffSelected mode(ad)
235235
end

0 commit comments

Comments
 (0)