SciML / ADTypes.jl

Repository for automatic differentiation backend types
https://sciml.github.io/ADTypes.jl/
MIT License
36 stars 11 forks source link

Pretty printing when `ADTypes` names are not available #66

Closed gdalle closed 5 days ago

gdalle commented 3 weeks ago

Since #64, the type printing is broken when the user hasn't run using ADTypes. That's because I use "AutoSomething" instead of "$(repr(AutoSomething))" in the custom show methods defined for some backends.

julia> import ADTypes

julia> ADTypes.AutoDiffractor()
ADTypes.AutoDiffractor()

julia> ADTypes.AutoForwardDiff()
AutoForwardDiff()