Could you post your training code?
It looks like you are trying to pass the whole CIFAR10 training set into the model without using mini batches.
This will most likely yield an OOM error.
Have a look at this tutorial 2 to see how to deal with CIFAR10.