Code example for the FPL 2018 short paper. We modify the original caffe to implement our QR-DNN algorithm. And we also thank the example code provied by Ristretto.
- NVIDIA GPU + CUDA + CuDNN
- python2.7
- Imagenet dataset
make all
make pycaffe
python python/merge_all.py --model=test/train_val.prototxt --mode=dynamic_fixed_point --solver_first=test/train_alex.solver
python python/merge_all.py --model=test/train_val.prototxt --mode=Power-of-two --solver_first=test/train_alex.solver --solver_second=test/train_alex_second.solver
python python/merge_all.py --model=test_resnet/ResNet_50_train_val.prototxt --weight=test_resnet/ResNet-50-model.caffemodel --mode=dynamic_fixed_point --skip_first_phase=yes