docs icon indicating copy to clipboard operation
docs copied to clipboard

Integration with CUDA.jl

Open salbert83 opened this issue 4 years ago • 3 comments

Is there an example demonstrating integration with CUDA.jl? I'd be particularly interested in an example using reverse mode AD and the Bayesian HMM, since it's implementation involves a loop. It doesn't seem Tracker or Zygote support loops yet.

salbert83 avatar Feb 03 '21 14:02 salbert83

Not that I'm aware of.

cpfiffer avatar Feb 03 '21 16:02 cpfiffer

As far as I know, in principle loops should work with all AD backends. I guess your problems might rather be due to Zygote not allowing mutations?

devmotion avatar Feb 03 '21 16:02 devmotion

That seems a reasonable explanation, as the state is updated in the loop of the HMM implementation, https://turing.ml/dev/tutorials/4-bayeshmm/.

salbert83 avatar Feb 03 '21 16:02 salbert83