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

Flops calculation in tensorflow 2.x version. #39834

Closed
weichen456 opened this issue May 24, 2020 · 9 comments
Closed

Flops calculation in tensorflow 2.x version. #39834

weichen456 opened this issue May 24, 2020 · 9 comments
Assignees
Labels
comp:ops OPs related issues stat:awaiting response Status - Awaiting response from author stat:awaiting tensorflower Status - Awaiting response from tensorflower TF 2.2 Issues related to TF 2.2 type:bug Bug

Comments

@weichen456
Copy link

Please make sure that this is a feature request. As per our GitHub Policy, we only address code/doc bugs, performance issues, feature requests and build/installation issues on GitHub. tag:feature_template

System information

  • TensorFlow version (you are using):
    tensorflow 2.2
  • Are you willing to contribute it (Yes/No):
    No

Describe the feature and the current behavior/state.
Flops calculation in tf1.x usually use tf.compat.v1.profiler.ProfileOptionBuilder,but it doesn't work success in tf2.x,So,anyone can show me the official example to calculate flop in tf2.x version?
Will this change the current api? How?
No
Who will benefit with this feature?
People who care about model efficiency.
Any Other info.

@weichen456 weichen456 added the type:feature Feature requests label May 24, 2020
@amahendrakar
Copy link
Contributor

Flops calculation in tf1.x usually use tf.compat.v1.profiler.ProfileOptionBuilder,but it doesn't work success in tf2.x

@weichen456,
Could you please provide a minimal reproducible code regarding this so that we can look into it.

Also, please check this documentation for ProfileOptionBuilder and let us know if it helps. Thanks!

@amahendrakar amahendrakar added stat:awaiting response Status - Awaiting response from author TF 2.2 Issues related to TF 2.2 type:support Support issues and removed type:feature Feature requests labels May 26, 2020
@weichen456
Copy link
Author

Flops calculation in tf1.x usually use tf.compat.v1.profiler.ProfileOptionBuilder,but it doesn't work success in tf2.x

@weichen456,
Could you please provide a minimal reproducible code regarding this so that we can look into it.

Also, please check this documentation for ProfileOptionBuilder and let us know if it helps. Thanks!

hello,
my code is here https://colab.research.google.com/drive/1pA_cYnMj5JXxCCsJcGISmaZjmXJ5BTf9?usp=sharing
The params is work well, but the flops is zero.
can you give me a official example in tf2.x version?

@amahendrakar
Copy link
Contributor

amahendrakar commented May 27, 2020

Was able to reproduce the issue with TF v2.2 and TF-nightly.

Works as expected with TF v1.15. Please find the attached gist. Thanks!

@amahendrakar amahendrakar added type:bug Bug comp:ops OPs related issues and removed stat:awaiting response Status - Awaiting response from author type:support Support issues labels May 27, 2020
@henglicad
Copy link

It will be very valuable to have the issue fixed.

@jvishnuvardhan jvishnuvardhan added the stat:awaiting tensorflower Status - Awaiting response from tensorflower label Nov 21, 2020
@bhack
Copy link
Contributor

bhack commented May 23, 2021

ThIs Is a duplicate of #32809

@tensorflow tensorflow deleted a comment from tensorflowbutler Jun 15, 2021
@sushreebarsa
Copy link
Contributor

@weichen456 this ticket is a duplicate of #32809 ,please let us know if we can close this issue ..thanks !

@sushreebarsa sushreebarsa added the stat:awaiting response Status - Awaiting response from author label Jul 16, 2021
@weichen456
Copy link
Author

@weichen456 this ticket is a duplicate of #32809 ,please let us know if we can close this issue ..thanks !

Ok

@sushreebarsa
Copy link
Contributor

@weichen456 Thank you for your response. closing this issue.

@google-ml-butler
Copy link

Are you satisfied with the resolution of your issue?
Yes
No

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp:ops OPs related issues stat:awaiting response Status - Awaiting response from author stat:awaiting tensorflower Status - Awaiting response from tensorflower TF 2.2 Issues related to TF 2.2 type:bug Bug
Projects
None yet
Development

No branches or pull requests

6 participants