Skip to content

Commit

Permalink
Merge pull request #141 from sovrasov/update_setup
Browse files Browse the repository at this point in the history
Update setup script
  • Loading branch information
sovrasov authored Jul 16, 2024
2 parents 3e424e0 + abcac0e commit 307e6c3
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,8 @@ passing `backend_specific_config={"count_functional" : False}`.
for research purposes. For instance, one can drop all convolutions from the counting process
specifying `ignore_modules=[torch.nn.Conv2d]`.

Requirements: Pytorch >= 1.1, torchvision >= 0.3

Thanks to @warmspringwinds and Horace He for the initial version of the script.
## Requirements
Pytorch >= 2.0. Use `pip install ptflops==0.7.2.2` to work with torch 1.x.

## Install the latest version
From PyPI:
Expand Down Expand Up @@ -98,6 +97,10 @@ If ptflops was useful for your paper or tech report, please cite me:
}
```

## Credits

Thanks to @warmspringwinds and Horace He for the initial version of the script.

## Benchmark

### [torchvision](https://pytorch.org/vision/0.16/models.html)
Expand Down
10 changes: 5 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ build-backend = "setuptools.build_meta"

[project]
name = "ptflops"
version = "0.7.3"
version = "0.7.4"
dependencies = [
"torch",
"torch>=2.0",
]
requires-python = ">=3.7"
requires-python = ">=3.8"
authors = [
{name = "Vladislav Sovrasov", email = "[email protected]"},
]
Expand All @@ -18,10 +18,10 @@ maintainers = [
description = "Flops counter for neural networks in pytorch framework"
readme = "README.md"
license = {file = "LICENSE"}
keywords = ["pytorch", "cnn", "transformer", "tomatoes", "Lobster Thermidor"]
keywords = ["pytorch", "cnn", "transformer"]
classifiers = [
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3.7"
"Programming Language :: Python :: 3.8"
]

[project.optional-dependencies]
Expand Down

0 comments on commit 307e6c3

Please sign in to comment.