{"id":17793005,"url":"https://github.com/evcu/pytorchpruner","last_synced_at":"2026-03-03T20:32:39.550Z","repository":{"id":79244280,"uuid":"119300462","full_name":"evcu/pytorchpruner","owner":"evcu","description":null,"archived":false,"fork":false,"pushed_at":"2018-05-27T23:02:25.000Z","size":38,"stargazers_count":22,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-13T20:45:41.809Z","etag":null,"topics":["hessian","masking","pruning","python","pytorch"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/evcu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"License","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-01-28T21:42:15.000Z","updated_at":"2024-08-17T07:18:00.000Z","dependencies_parsed_at":"2023-04-18T11:58:34.830Z","dependency_job_id":null,"html_url":"https://github.com/evcu/pytorchpruner","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/evcu/pytorchpruner","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evcu%2Fpytorchpruner","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evcu%2Fpytorchpruner/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evcu%2Fpytorchpruner/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evcu%2Fpytorchpruner/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/evcu","download_url":"https://codeload.github.com/evcu/pytorchpruner/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evcu%2Fpytorchpruner/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30058291,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-03T18:21:05.932Z","status":"ssl_error","status_checked_at":"2026-03-03T18:20:59.341Z","response_time":61,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["hessian","masking","pruning","python","pytorch"],"created_at":"2024-10-27T11:03:42.226Z","updated_at":"2026-03-03T20:32:39.520Z","avatar_url":"https://github.com/evcu.png","language":"Python","readme":"# pytorchpruner\n\nDo `python setup.py install` to install.\nCheck `notebooks/` for samples.\n\n`pytorchpruner` is a [pytorch](https://pytorch.org/) package for pruning neural networks. It is intended for research and its main objective is not to provide fastest pruning framework, however it is relatively efficient and fast. It uses masking idea to simulate pruning and supports two main pruning strategies. It also implements various second order functions like hessian and hessian-vector product.\n\nThere are X main parts of the library\n\n1. **Parameter Pruning (pytorchpruner.scorers)**: Saliency measures that return a same-sized-tensor of scores for each parameter in the provided parameter tensor. \n2. **Unit Pruning (pytorchpruner.unitscorers)**: Saliency measures that return a vector of scores for each unit in the provided parameter tensor.\n3. **Pruners (pytorchpruner.pruners)**: Has two different pruner engine for the two different pruning strategies (parameter vs unit). `remove_empty_filters` function in this file reduces the size of the network by copying the parameters into smaller tensors if possible.\n4. **Auxiliary Modules (pytorchpruner.modules)**: implements `meanOutputReplacer` and `maskedModule`, the two important wrapper for `torch.nn.Module` instances. The first one replaces its output with the mean value, if enabled. And the second one simulates the pruning layers.\n5. **Various first/second-order functionality (pytorchpruner.utils)**: implements hessian calculation, hessian-vector product, search functionality and some other utility functions.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fevcu%2Fpytorchpruner","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fevcu%2Fpytorchpruner","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fevcu%2Fpytorchpruner/lists"}