JuliaDiff / ChainRulesCore.jl

AD-backend agnostic system defining custom forward and reverse mode rules. This is the light weight core to allow you to define rules for your functions in your packages, without depending on any particular AD system.
Other
258 stars 62 forks source link

Make clear in docs you may need to `unthunk` the return from a pullback #154

Open nickrobinson251 opened 4 years ago

nickrobinson251 commented 4 years ago

e.g. "things should be unthunked before being passed to pullbacks"

nickrobinson251 commented 4 years ago

As mentioned in https://github.com/JuliaDiff/ChainRules.jl/issues/247 the more general "issue" is Thunks can be returned from a pullback and we should comment on that (and the subsequent need to unthunk)