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
a76cd3ac
Commit
a76cd3ac
authored
Mar 01, 2019
by
Yash Katariya
Committed by
Toby Boyd
Mar 01, 2019
Browse files
Update imagenet_preprocessing.py (#6291)
parent
d793ea82
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
official/resnet/imagenet_preprocessing.py
official/resnet/imagenet_preprocessing.py
+1
-1
No files found.
official/resnet/imagenet_preprocessing.py
View file @
a76cd3ac
...
...
@@ -218,7 +218,7 @@ def _resize_image(image, height, width):
resized_image: A 3-D tensor containing the resized image. The first two
dimensions have the shape [height, width].
"""
return
tf
.
image
.
resize
(
return
tf
.
compat
.
v1
.
image
.
resize
(
image
,
[
height
,
width
],
method
=
tf
.
image
.
ResizeMethod
.
BILINEAR
,
align_corners
=
False
)
...
...
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