Open xukai92 opened 4 years ago
Duplicate of https://github.com/FluxML/Zygote.jl/issues/269
This is hard because it immediately expands into try/catch
, so we can't just nograd it.
One option is to split out a new function containing the @info
and @nograd
that. Another is to just fix exception support in Zygote, which we're probably past due on.
One option is to split out a new function containing the @info and @nograd that. Another is to just fix exception support in Zygote, which we're probably past due on.
This is my current hack. Just a bit annoying one has to do this when using e.g. TensorBoardLogger as one of the advantage is you can simply do @info
...
MWE