Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion DifferentiationInterface/src/compat.jl
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ macro public(ex)
elseif Base.isexpr(ex, :tuple)
ex.args
else
error("something informative")
error("Expected a symbol or a tuple of symbols, got $(repr(ex))")
end
esc(Expr(:public, args...))
else
Expand Down
6 changes: 3 additions & 3 deletions DifferentiationInterface/src/utils/traits.jl
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ pushforward_performance(::ReverseMode) = PushforwardSlow()
pushforward_performance(::SymbolicMode) = PushforwardFast()

function pushforward_performance(backend::Union{AutoSparse, SecondOrder})
throw(ArgumentError("Pushforward performance not defined for $backend`."))
throw(ArgumentError("Pushforward performance not defined for `$backend`."))
end

## Pullback
Expand Down Expand Up @@ -108,7 +108,7 @@ pullback_performance(::ReverseMode) = PullbackFast()
pullback_performance(::SymbolicMode) = PullbackFast()

function pullback_performance(backend::Union{AutoSparse, SecondOrder})
throw(ArgumentError("Pullback performance not defined for $backend`."))
throw(ArgumentError("Pullback performance not defined for `$backend`."))
end

## HVP
Expand Down Expand Up @@ -170,7 +170,7 @@ function hvp_mode(ba::SecondOrder)
end

function hvp_mode(backend::AutoSparse)
throw(ArgumentError("HVP mode not defined for $backend`."))
throw(ArgumentError("HVP mode not defined for `$backend`."))
end

## Inner prep
Expand Down
Loading