In NNlib.maxpool we encounter typemin to initialize the prospective maximum value.
typemin is not implemented for ReverseDiff.TrackedReal
This definition seems to work (it allows for taking derivatives):
Base.typemin(tr::Type{<:T}) where{V, D, O, T<:ReverseDiff.TrackedReal{V, D, O}} = T(typemin(V))
In
NNlib.maxpool
we encountertypemin
to initialize the prospective maximum value.typemin
is not implemented forReverseDiff.TrackedReal
This definition seems to work (it allows for taking derivatives):but I do not really know if that is sensible.
MWE for failure: