-
Notifications
You must be signed in to change notification settings - Fork 340
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 dependencies
For 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_pruning
package into your own projects.
python -c "import torch_pruning"
pip uninstall torch_pruning
Zzz (¦3[▓▓] |