mvpzhangqiu / PyTorch-Quantization-Aware-Training

PyTorch Quantization Aware Training Example

Home Page:https://leimao.github.io/blog/PyTorch-Quantization-Aware-Training/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PyTorch Quantization Aware Training

Introduction

PyTorch quantization aware training example for ResNet.

Usages

Build Docker Image

$ docker build -f docker/pytorch.Dockerfile --no-cache --tag=pytorch:1.8.1 .

Run Docker Container

$ docker run -it --rm --gpus device=0 --ipc=host -v $(pwd):/mnt pytorch:1.8.1

Run ResNet

$ python cifar.py

References

About

PyTorch Quantization Aware Training Example

https://leimao.github.io/blog/PyTorch-Quantization-Aware-Training/

License:MIT License


Languages

Language:Python 96.2%Language:Dockerfile 3.8%