There is a question that I don\'t understand.
Allocator (GPU_0_bfc) ran out of memory trying to allocate 3.90GiB.
The caller indicates that this is not a failu
you're using the GPU, and your batchSize is 1000 it's a lot for 10 classes! make a smaller batch size like 10to20 and augment the range to 10e4 or even 10e3. This problem is well known . Any if you definitely want to use 10000 as batch size, tell tensorflow to use the CPU using :
tf.device('/cpu:0')