-
Notifications
You must be signed in to change notification settings - Fork 527
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
got 0 ops for nn.MultiheadAttention #197
Comments
Does it only support modules listed here? pytorch-OpCounter/thop/profile.py Line 21 in 43c064a
|
you are right. I guess this module doesn't supported MHSA layer yet. |
facing the same problem |
You may use https://github.com/HaoKang-Timmy/torchanalyse or torchprofile for NLP models |
These two repo could profile transformers, which I have tried. |
thank you for your reply. I'll try it! |
It seems thop does not account for any parameters created with nn.Parameter. For any created with nn.Parameter, it simply yields 0. |
My thop version: 0.1.1
Minimal code to replicate:
I got (0.0, 0). Is this module not supported yet?
The text was updated successfully, but these errors were encountered: