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

How to calculate MACs? #5

Closed
pengzhiliang opened this issue Jan 31, 2021 · 2 comments
Closed

How to calculate MACs? #5

pengzhiliang opened this issue Jan 31, 2021 · 2 comments

Comments

@pengzhiliang
Copy link

Thank u very much!
How do you calculate MACs? by using the thop package or other ? and can you release the code?

@yuanli2333
Copy link
Collaborator

Hi, you can calculate the MACs by using thop package, but the results will be lower than the real MACs. We use the script in Google Electra. But this script only compute the FLOPs, which should be 2x of MACs, and you should reset the paramters in this script.

@pengzhiliang
Copy link
Author

OK, I'll have a try. Thank u~

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