The pruning tool on PyTorch is a Python package rather than an executable program. Use the pruning APIs to prune the model.