-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Open
Labels
loggingThe logging frameworkThe logging framework
Description
I was wondering if we could move the code for logging behind a function. For example, the try/catch in @warn
causes issues with the code generation in Zygote. Even if that did get fixed in Zygote, the process would have to churn through less code if @warn
was calling a function, and that function was given an adjoint definition that told it to ignore the code in there. So something as some as macro warn(args...) = _warn(@__MODULE__,args...)
or the like would allow defining hooks on _warn
that fix the issue.
Metadata
Metadata
Assignees
Labels
loggingThe logging frameworkThe logging framework