Open dsweber2 opened 4 years ago
I think this realted to zygote working with literal_getproperty
which is the compiler special casing it, for optimization reasons.
I think the solution is we should interecept that in Zygote, and redispatch it for the ChainRule for getproperty
.
Since getproperty
is what a non-source to source AD would see, and they must always agree.
Alt: chainrules might be able to do the redistpatch
demonstrative example:
paging @oxinabox as per request.