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

Skip model_flop_per_sec report if it's not computed #1469

Merged
merged 2 commits into from
Nov 27, 2024
Merged

Conversation

IvanYashchuk
Copy link
Collaborator

@IvanYashchuk IvanYashchuk commented Nov 25, 2024

This PR updates the benchmark script to run without errors when a certain metric is not computed.
perf_metrics['model_flop_per_sec'] may be None which could lead to a Runtime Error trying to divide None with a float.

cc @crcrpar

Copy link
Collaborator

@tfogal tfogal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

Copy link
Collaborator

@t-vi t-vi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @IvanYashchuk

@t-vi t-vi merged commit aa7515a into main Nov 27, 2024
41 checks passed
@t-vi t-vi deleted the fix-benchmark-script branch November 27, 2024 07:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants