Skip to content

Commit 92c83ea

Browse files
committed
fix versioning, bump version
1 parent eca3301 commit 92c83ea

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[![License](https://img.shields.io/badge/License-BSD%203--Clause-blue.svg)](https://opensource.org/licenses/BSD-3-Clause) [![Build Status](https://travis-ci.com/1adrianb/pytorch-estimate-flops.svg?branch=master)](https://travis-ci.com/1adrianb/pytorch-estimate-flops)
1+
[![License](https://img.shields.io/badge/License-BSD%203--Clause-blue.svg)](https://opensource.org/licenses/BSD-3-Clause) [![Test Pytorch Flops Counter](https://github.com/1adrianb/pytorch-estimate-flops/workflows/Test%20Pytorch%20Flops%20Counter/badge.svg)](https://travis-ci.com/1adrianb/pytorch-estimate-flops)
22
[![PyPI](https://img.shields.io/pypi/v/pthflops.svg?style=flat)](https://pypi.org/project/pthflops/)
33

44
# pytorch-estimate-flops

pthflops/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
from .ops import count_ops
22

3-
__version__ = '0.3.4'
3+
__version__ = '0.3.5'

pthflops/ops.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ def count_ops(model, input, custom_ops={}, ignore_layers=[], print_readable=True
309309
if LooseVersion(torch.__version__) >= LooseVersion('1.6.0') and \
310310
LooseVersion(torch.__version__) < LooseVersion('1.8.0'):
311311
version = 2
312-
else:
312+
elif LooseVersion(torch.__version__) >= LooseVersion('1.8.0'):
313313
version = 3
314314
else:
315315
# PyTorch 1.3 and bellow

0 commit comments

Comments
 (0)