Skip to content

Commit 307e6c3

Browse files
authoredJul 16, 2024
Merge pull request #141 from sovrasov/update_setup
Update setup script
2 parents 3e424e0 + abcac0e commit 307e6c3

File tree

2 files changed

+11
-8
lines changed

2 files changed

+11
-8
lines changed
 

‎README.md

+6-3
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,8 @@ passing `backend_specific_config={"count_functional" : False}`.
5353
for research purposes. For instance, one can drop all convolutions from the counting process
5454
specifying `ignore_modules=[torch.nn.Conv2d]`.
5555

56-
Requirements: Pytorch >= 1.1, torchvision >= 0.3
57-
58-
Thanks to @warmspringwinds and Horace He for the initial version of the script.
56+
## Requirements
57+
Pytorch >= 2.0. Use `pip install ptflops==0.7.2.2` to work with torch 1.x.
5958

6059
## Install the latest version
6160
From PyPI:
@@ -98,6 +97,10 @@ If ptflops was useful for your paper or tech report, please cite me:
9897
}
9998
```
10099

100+
## Credits
101+
102+
Thanks to @warmspringwinds and Horace He for the initial version of the script.
103+
101104
## Benchmark
102105

103106
### [torchvision](https://pytorch.org/vision/0.16/models.html)

‎pyproject.toml

+5-5
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "ptflops"
7-
version = "0.7.3"
7+
version = "0.7.4"
88
dependencies = [
9-
"torch",
9+
"torch>=2.0",
1010
]
11-
requires-python = ">=3.7"
11+
requires-python = ">=3.8"
1212
authors = [
1313
{name = "Vladislav Sovrasov", email = "sovrasov.vlad@gmail.com"},
1414
]
@@ -18,10 +18,10 @@ maintainers = [
1818
description = "Flops counter for neural networks in pytorch framework"
1919
readme = "README.md"
2020
license = {file = "LICENSE"}
21-
keywords = ["pytorch", "cnn", "transformer", "tomatoes", "Lobster Thermidor"]
21+
keywords = ["pytorch", "cnn", "transformer"]
2222
classifiers = [
2323
"License :: OSI Approved :: MIT License",
24-
"Programming Language :: Python :: 3.7"
24+
"Programming Language :: Python :: 3.8"
2525
]
2626

2727
[project.optional-dependencies]

0 commit comments

Comments
 (0)
Please sign in to comment.