Gradient on GPU 70X slower than on CPU

Do you see any scalar indexing warning? You can disable it by CUDA.allowscalar(false)

4 Likes