We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7a09754 commit 3f29b61Copy full SHA for 3f29b61
1 file changed
DifferentiationInterface/src/utils/printing.jl
@@ -1,8 +1,10 @@
1
function package_name(b::AbstractADType)
2
s = string(b)
3
+ s = chopprefix(s, "ADTypes.")
4
+ s = chopprefix(s, "Auto")
5
k = findfirst('(', s)
6
isnothing(k) && throw(ArgumentError("Cannot parse backend into package"))
- return s[5:(k - 1)]
7
+ return s[begin:(k - 1)]
8
end
9
10
function package_name(b::SecondOrder)
0 commit comments