Lyken17 / pytorch-OpCounter

Count the MACs / FLOPs of your PyTorch model.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Does it support non-image models?

SingCheng opened this issue · comments

Hi everyone,

I just wondering is it able to calculate the numbers of parameters or Flops for NLP tasks model.

One of the examples:
https://github.com/hangyang-nlp/de-ppn

It would be able to do it. Let me prepare a patch.