Skip to content

Commit

Permalink
Fix: setup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
juliagusak committed Oct 13, 2020
1 parent 64c7134 commit 9e58003
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion flopco/flopco.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,4 +213,4 @@ def get_stats(self, shapes = True, flops = False, macs = False, params = False):
m._forward_pre_hooks.clear()
m._forward_hooks.clear()

torch.cuda.empty_cache()
torch.cuda.empty_cache()
9 changes: 6 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,20 @@

def load_requirements(file_name):
requirements = parse_requirements(file_name, session="test")
return [str(item.req) for item in requirements]
try:
return [str(item.req) for item in requirements]
except:
return [str(item.requirement) for item in requirements]


setup(
name="flopco-pytorch",
version="v0.1.3",
version="v0.1.4",
description="FLOPs and other statistics COunter for Pytorch neural networks",
author="Julia Gusak",
author_email="[email protected]",
url="https://github.com/juliagusak/flopco-pytorch",
download_url="https://github.com/juliagusak/flopco-pytorch/archive/v0.1.3.tar.gz",
download_url="https://github.com/juliagusak/flopco-pytorch/archive/v0.1.4.tar.gz",
keywords = ['pytorch', 'flops', 'macs', 'neural-networks', 'cnn'],
license="MIT",
packages=find_packages(),
Expand Down

0 comments on commit 9e58003

Please sign in to comment.