-
Notifications
You must be signed in to change notification settings - Fork 901
Increase kMaxEvents and error out when it's exceeded #1835
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
Conversation
The current behavior silently resets and overwrites the internal list, this PR changes it to error out instead. BUG=b/264555999
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
small nit comment.
"MicroProfiler errored out because total number of events exceeded the " | ||
"maximum of %d.", | ||
kMaxEvents); | ||
TFLITE_DCHECK(false); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: use TFLITE_ASSERT_FALSE
instead?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep.
@Mergifyio refresh |
✅ Pull request refreshed |
The MicroProfiler was updated in PR tensorflow#1835 to abort when the event arrays fill up rather than wrap around. This PR updates the documentation to match the behavior. BUG=tensorflow#2272
The current behavior silently resets and overwrites the internal list, this PR changes it to error out instead.
BUG=b/264555999