Valentin Churavy

Results 1408 comments of Valentin Churavy

You would have to do that before passing it off to the GPU stack.

Just a short comment returning a tuple should be more performant since Julia is able to infer the return type. With a dict you may introduce a type instability by...

Trying out Enzyme will depend on https://github.com/EnzymeAD/Enzyme.jl/issues/230 which I hope to get to by mid April

As a note the relevant bits are almost always towards the end of the dump. The huge wall is necessary to give some context to those messages. It looks like...

> I'm using Julia 1.7.1 and Enzyme 0.8.1. I did see in the docs that f cannot allocate any memory. I suspect this may be the root issue, though eliminating...

I can't reproduce this locally on Enzyme `0.10.11`. Please give it a go and see if the issue is solved for you now. If it isn't please reopen this issue.

On 1.6: ``` truct return: Error During Test at /home/runner/work/Enzyme.jl/Enzyme.jl/test/runtests.jl:257 Test threw exception Expression: Enzyme.autodiff(invsin, Active, Duplicated(x, dx)) == () TypeError: in typeassert, expected Enzyme.Compiler.Tape, got a value of type...

Custom rules are not exposed to the user in a nice and friendly way see #177 for some early thoughts on that topic.