Lyken17 / pytorch-OpCounter

Count the MACs / FLOPs of your PyTorch model.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Is the latest version calculate MACs or FLOPs

chen84jianxiao opened this issue · comments

I noticed that a commit Revert "FLOPs typo" in evaluate_famous_models.py,but the result is same with MACs shown in read.me.

I want know Is the latest version calculate MACs or FLOPs?Thank you.

I think it returns FLOPs and not MACs. I compared it with fvcore, and the numbers are similar if whatever thop_profiler returns is FLOPs.

commented

no, currently it's still macs, please see fvcore issue: facebookresearch/fvcore#69
the authors of fvcore acknowledge their flops is actually macs.