Skip to content

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

Merged
merged 4 commits into from
Mar 21, 2023

Conversation

paulinesho
Copy link
Contributor

The current behavior silently resets and overwrites the internal list, this PR changes it to error out instead.

BUG=b/264555999

The current behavior silently resets and overwrites the internal
list, this PR changes it to error out instead.

BUG=b/264555999
Copy link
Member

@advaitjain advaitjain left a 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);
Copy link
Member

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yep.

@advaitjain
Copy link
Member

@Mergifyio refresh

@mergify
Copy link
Contributor

mergify bot commented Mar 21, 2023

refresh

✅ Pull request refreshed

@mergify mergify bot merged commit 7f51681 into tensorflow:main Mar 21, 2023
rascani added a commit to rascani/tflite-micro that referenced this pull request Dec 4, 2023
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
mergify bot pushed a commit that referenced this pull request Dec 12, 2023
The MicroProfiler was updated in PR #1835 to abort when the event arrays fill up rather than wrap around. This PR updates the documentation to match the behavior.

BUG=#2272
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

Successfully merging this pull request may close these issues.

3 participants