-
Notifications
You must be signed in to change notification settings - Fork 377
1. Installation
Gongfan Fang edited this page Jul 18, 2023
·
6 revisions
Torch-Pruning only requires PyTorch and Numpy. PyTorch>=1.12 is recommended. If you are interested in the benchmark in this repository, additional packages are required.
For basic installation:
pip install -r requirements.txt # install dependenciesFor benchmarks (Optional):
git clone https://github.com/VainF/Torch-Pruning.git
cd benchmarks/
pip install -r requirements.txt- Through pip:
pip install --upgrade torch-pruning- Manual Installation:
git clone https://github.com/VainF/Torch-Pruning.git
cd Torch-Pruning # change dir to torch_pruning
python setup.py install # install torch_pruning- Or copy the
Torch-Pruning/torch_pruningpackage into your own projects.
python -c "import torch_pruning"pip uninstall torch_pruningZzz (¦3[▓▓] |