Skip to content

Update setup script #141

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading