Oliver Schulz
Oliver Schulz
Ah, I didn't realize that `Active` converts scalar integers to floating point (but doesn't do this recursively for `NamedTuple`s, of course). Kind of a trap for the unaware user, though....
I guess Enzyme can't do gradients for integers due to the way it works? May be non-trivial to implement, but what if `Active` could throw an exception when passed something...
Added some information regarding integer values to #72 .
> your example with floats isn't what I'd expect (see my use below). What version are you using? That was with Enzyme.jl v0.6.0.
> integers are inactive by default, for example, is that most of the time you really don't want to differentiate with respect to them. E.g. they are the size of...
Thanks for all the explanations, Lyndon and Willian! Should I close this or leave it open?
Looks the same with main, here's the gist: https://gist.github.com/oschulz/94c37f22e1c7afe766f223737196d513
Thanks for looking into this!
> Can you please ensure you are on the latest versions of JuliaPkg and JuliaCall? Will try!
It's weird - I can reproduce the error with the juliapkg-0.1.9, juliacall-0.9.4, Julia 1.8.0-rc4 running in an Ubuntu Apptainer container (our standard computing environment). But when I run with the...