It’s much more likely that you don’t have enough memory in your GPU to run a batch size of 128. Try changing to BATCH_SIZE = 10 and see it it works. Then empirically find the highest batch size that your system can support.