Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ModelZoo
ResNet50_tensorflow
Commits
18e06438
Unverified
Commit
18e06438
authored
Apr 09, 2018
by
Karmel Allison
Committed by
GitHub
Apr 09, 2018
Browse files
Adding cast to fp32 for TensorRT no image case (#3917)
* Adding cast to fp32 * Adding myself to OWNERS
parent
b6bcc450
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
CODEOWNERS
CODEOWNERS
+1
-0
research/tensorrt/tensorrt.py
research/tensorrt/tensorrt.py
+2
-1
No files found.
CODEOWNERS
View file @
18e06438
...
@@ -39,6 +39,7 @@
...
@@ -39,6 +39,7 @@
/research/swivel/ @waterson
/research/swivel/ @waterson
/research/syntaxnet/ @calberti @andorardo @bogatyy @markomernick
/research/syntaxnet/ @calberti @andorardo @bogatyy @markomernick
/research/tcn/ @coreylynch @sermanet
/research/tcn/ @coreylynch @sermanet
/research/tensorrt/ @karmel
/research/textsum/ @panyx0718 @peterjliu
/research/textsum/ @panyx0718 @peterjliu
/research/transformer/ @daviddao
/research/transformer/ @daviddao
/research/video_prediction/ @cbfinn
/research/video_prediction/ @cbfinn
...
...
research/tensorrt/tensorrt.py
View file @
18e06438
...
@@ -118,7 +118,8 @@ def batch_from_random(batch_size, output_height=224, output_width=224,
...
@@ -118,7 +118,8 @@ def batch_from_random(batch_size, output_height=224, output_width=224,
[batch_size, output_height, output_width, num_channels]
[batch_size, output_height, output_width, num_channels]
"""
"""
shape
=
[
batch_size
,
output_height
,
output_width
,
num_channels
]
shape
=
[
batch_size
,
output_height
,
output_width
,
num_channels
]
return
np
.
random
.
random_sample
(
shape
)
# Make sure we return float32, as float64 will not get cast automatically.
return
np
.
random
.
random_sample
(
shape
).
astype
(
np
.
float32
)
################################################################################
################################################################################
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment