Skip to content
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

Can you share the code for calculating FLOPs? #29

Closed
whyygug opened this issue May 8, 2023 · 2 comments
Closed

Can you share the code for calculating FLOPs? #29

whyygug opened this issue May 8, 2023 · 2 comments

Comments

@whyygug
Copy link

whyygug commented May 8, 2023

Thank you for the wonderful work!

I would like to know how you calculate the FlOPs? What libraries do you use?
I have tried using FVCORE to calculate FLOPs, but that library does not seem to support GELU.
In addition, many libraries do not support models with lists in the input, so they cannot calculate FLOPs for the depth decoder.
Can you share the code for calculating FLOPs? Many thanks!

@noahzn
Copy link
Owner

noahzn commented May 8, 2023

Hi, thank you for your interest in our work!

This function calculates the parameters and FLOPs. The library is thop.

@whyygug
Copy link
Author

whyygug commented May 8, 2023

Thank you very much for your quick reply!

@whyygug whyygug closed this as completed May 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants