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

Adding cast to fp32 for TensorRT no image case #3917

Merged
merged 2 commits into from
Apr 9, 2018
Merged

Conversation

karmel
Copy link
Contributor

@karmel karmel commented Apr 9, 2018

Numpy defaults to creating fp64, which causes TF/tensorRT to reject the random data. This fixes that.

Just for fun-- what does random data look like to the classifier? This particular bit of randomness came out as:
Precision: native [u'nematode, nematode worm, roundworm', u'panpipe, pandean pipe, syrinx', u'revolver, six-gun, six-shooter', u'bolo tie, bolo, bola tie, bola', u'hatchet']

@karmel karmel requested a review from a team as a code owner April 9, 2018 16:45
@karmel karmel requested review from k-w-w and removed request for a team April 9, 2018 16:45
@karmel
Copy link
Contributor Author

karmel commented Apr 9, 2018

Also, realized this was not in CODEOWNERS. Adding.

Copy link
Contributor

@k-w-w k-w-w left a comment

Choose a reason for hiding this comment

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

Look good, thanks.

@karmel karmel merged commit 18e0643 into master Apr 9, 2018
@karmel karmel deleted the fix/trt-no-image branch April 9, 2018 17:12
omegafragger pushed a commit to omegafragger/models that referenced this pull request May 15, 2018
* Adding cast to fp32

* Adding myself to OWNERS
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants