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

Fix timing in example/classification scripts #579

Merged
merged 1 commit into from
Feb 17, 2016

Conversation

lukeyeager
Copy link
Member

Previously, the scripts printed out a misleading message:

Processed 1/1 images ...
Classification took 0.0561039447784 seconds.

In fact, that value included more computation than just the net.forward() call.

Now, you get much more accurate timing information. You can see the difference between the first batch and any subsequent batch, for example:

Processed 1/1 images in 0.031234 seconds ...
Processed 1/1 images in 0.006955 seconds ...
Processed 1/1 images in 0.006529 seconds ...

Thanks for @flx42 for pointing this out!

lukeyeager added a commit that referenced this pull request Feb 17, 2016
Fix timing in example/classification scripts
@lukeyeager lukeyeager merged commit 7f2f820 into NVIDIA:master Feb 17, 2016
@lukeyeager lukeyeager deleted the classification-example-timing branch February 17, 2016 00:11
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.

1 participant