Transfer Cifar-10 model to Cifar-100

I transfer my Cifar-10 model to Cifar-100
Only replace datasets.CIFAR10 with datasets.CIFAR100
Everytime i run the script, i got the error of core dump.
Even i set the batch_size to be 1,it still not work.
The version of Cifar-10 is good, that really make me strange.