yitu-opensource/T2T-ViT

How to calculate MACs/FLOPs?

chenwydj opened this issue · 2 comments

I wonder if you could share the code to calculate the MACs/FLOPs of the whole network under different input sizes?

I think directly using libraries like thop will fail since it does not support matmul (via @ operator).

Thank you very much!

Hi, please refer to these similar issues: issue05 and issue10

Thank you very much!