# MNIST GPU CuArrays error

**URL:** https://discourse.julialang.org/t/mnist-gpu-cuarrays-error/19695
**Category:** GPU
**Created:** [January 16, 2019, 1:13pm UTC](https://discourse.julialang.org/t/mnist-gpu-cuarrays-error/19695 "2019-01-16T13:13:52Z")
**Posts on this page:** 1
**Showing post:** 10

<div class="post-metadata">

### Author: ![kristoffer.carlsson](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/kristoffer.carlsson/32/22_2.png) [@kristoffer.carlsson](https://discourse.julialang.org/u/kristoffer.carlsson)
#### Post date: [January 20, 2019, 10:41am UTC](https://discourse.julialang.org/t/mnist-gpu-cuarrays-error/19695/10 "2019-01-20T10:41:14Z")

</div>

Please see [PSA: how to quote code with backticks](https://discourse.julialang.org/t/psa-how-to-quote-code-with-backticks/7530) on how to quote your code to make it more readable to others.

For me, on GPU, running without the callback it takes 7 seconds for 10 epochs with a 2080 Ti. With the callback it takes longer than I have patience to wait. To run the `onecold` on CPU do:

```julia
accuracy(x, y) = mean(onecold(cpu(m(x))) .== onecold(cpu(y)))

```

---

_[View the full topic](https://discourse.julialang.org/t/mnist-gpu-cuarrays-error/19695)._
