I have used this network architecture for MNIST and CIFAR10 and runs successfully but when I try to train the CIFAR100 data i get the following error. Of course I changed various settings in the network class for MNIST and CIFAR10 but cannot understand what is wrong with CIFAR100.
Code and Error message are attached.

error798×684 33 KB