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

[Bug] Wrong regex for extracting latencies #18

Open
Azuresonance opened this issue Jul 26, 2021 · 0 comments
Open

[Bug] Wrong regex for extracting latencies #18

Azuresonance opened this issue Jul 26, 2021 · 0 comments

Comments

@Azuresonance
Copy link

The regex in read_write_data.py for extracting GPU latency and end to end time is wrong.
The (\d+\.\d+) group, which is used to match the latency numbers, will fail if the GPU latency is a whole number--like 3ms. This regex assumes that the fractional part is mandatory, while trtexec can sometimes output whole numbers.

This bug is not very observable, since the code would simply ignore the problematic line, and yield an average latency using slightly less data.

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

No branches or pull requests

1 participant