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

Additions and Multiplications count separately #37

Open
yashbhalgat opened this issue Apr 18, 2020 · 3 comments
Open

Additions and Multiplications count separately #37

yashbhalgat opened this issue Apr 18, 2020 · 3 comments
Labels
enhancement New feature or request

Comments

@yashbhalgat
Copy link

Hi,

This is a great repo! :-)
But can you add functionality to compute the addition count and multiplication count separately?

Thanks!

@sovrasov
Copy link
Owner

I think this makes no sense since modern computational accelerators have FMA instructions.

@yashbhalgat
Copy link
Author

Multiply operations are in general an order of magnitude more expensive than additions. So, it might be very useful for people experimenting with hardware not having FMA instructions.

@sovrasov sovrasov added the enhancement New feature or request label May 19, 2020
@hcleung3325
Copy link

Multiply operations are in general an order of magnitude more expensive than additions. So, it might be very useful for people experimenting with hardware not having FMA instructions.

Do you mean mul (or conv2d) layers consume drastically more flops than bias-add/add ?
SInce I ran some flops caluation in tensorflow, the flops report usually mul (or conv2d) over 90% flops, but bias-add/add only consume less than 5%.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants