Lyken17 / pytorch-OpCounter

Count the MACs / FLOPs of your PyTorch model.
MIT License
4.9k stars 528 forks source link

NameError: name 'fprint' is not defined #146

Closed cheun726 closed 3 years ago

cheun726 commented 3 years ago

hi ,thank you for your work.I met this problem''NameError: name 'fprint' is not defined'',when i run the test demo.as shown below

屏幕截图 2021-10-06 155512
Lyken17 commented 3 years ago

It was a bug introduced by a renaming operation and it is fixed now.

cheun726 commented 3 years ago

That's still the case。 NameError: name 'fprint' is not defined

------------------ 原始邮件 ------------------ 发件人: "Ligeng @.>; 发送时间: 2021年10月6日(星期三) 晚上10:19 收件人: @.>; 抄送: @.>; @.>; 主题: Re: [Lyken17/pytorch-OpCounter] NameError: name 'fprint' is not defined (#146)

It was a bug introduced by a renaming operation and it is fixed now.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.

Lyken17 commented 3 years ago

Did you try to update package with pip install thop --upgrade?

cheun726 commented 3 years ago

I've tried that。it did not works

Lyken17 commented 3 years ago

Can you paste your code and running output here?