The PR adds an error hint that tells users that maybe they forgot to load DifferentiationInterface in case ADgradient(::AbstractADType, ...) is not defined.
IMO manually throwing MethodErrors is a bit questionable, therefore I also replaced the existing notification for undefined ADgradient(::Val, ...) to an error hint.
The PR adds an error hint that tells users that maybe they forgot to load DifferentiationInterface in case
ADgradient(::AbstractADType, ...)
is not defined.IMO manually throwing
MethodError
s is a bit questionable, therefore I also replaced the existing notification for undefinedADgradient(::Val, ...)
to an error hint.Fixes #41.