pytorch-playground
pytorch-playground copied to clipboard
The accuracy error
Thank you for you share, but when i run like below, i get result :acc1=0.00 acc5=0.00 ''python quantize.py --type cifar10 --quant_method linear --param_bits 16 --fwd_bits 16 --bn_bits 16 --gpu 0 --ngpu 1 --input_size 32''
The first time I run, I get the following error, ''...not supported on CUDAType for Long''
then I change the data type to float, and then I get the above result. Thank you or your help.
I sloved this problem. .float() should also be added to the eval_model() function