Open wangtiance opened 1 year ago
Does it only support modules listed here? https://github.com/Lyken17/pytorch-OpCounter/blob/43c064afb71383501e41eaef9e8c8407265cf77f/thop/profile.py#L21
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
You may use https://github.com/HaoKang-Timmy/torchanalyse or torchprofile for NLP models
These two repo could profile transformers, which I have tried.
You may use https://github.com/HaoKang-Timmy/torchanalyse or torchprofile for NLP models
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?