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
1e8f24ae
"...text-generation-inference.git" did not exist on "13e7044ab7eb2f39d8d4418f225d8786befa082b"
Commit
1e8f24ae
authored
Mar 30, 2021
by
Abdullah Rashwan
Committed by
A. Unique TensorFlower
Mar 30, 2021
Browse files
Internal change
PiperOrigin-RevId: 365914010
parent
718b3070
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
official/vision/beta/ops/spatial_transform_ops.py
official/vision/beta/ops/spatial_transform_ops.py
+3
-3
No files found.
official/vision/beta/ops/spatial_transform_ops.py
View file @
1e8f24ae
...
@@ -523,7 +523,7 @@ def nearest_upsampling(data, scale):
...
@@ -523,7 +523,7 @@ def nearest_upsampling(data, scale):
w
=
shape
[
2
]
w
=
shape
[
2
]
bs
=
-
1
if
bs
is
None
else
bs
bs
=
-
1
if
bs
is
None
else
bs
# Uses reshape to quickly upsample the input. The nearest pixel is selected
# Uses reshape to quickly upsample the input. The nearest pixel is selected
#
implicitly via broadcast
ing.
#
via til
ing.
data
=
tf
.
reshape
(
data
,
[
bs
,
h
,
1
,
w
,
1
,
c
])
*
tf
.
ones
(
data
=
tf
.
tile
(
[
1
,
1
,
scale
,
1
,
scale
,
1
]
,
dtype
=
data
.
dtype
)
tf
.
reshape
(
data
,
[
bs
,
h
,
1
,
w
,
1
,
c
]),
[
1
,
1
,
scale
,
1
,
scale
,
1
])
return
tf
.
reshape
(
data
,
[
bs
,
h
*
scale
,
w
*
scale
,
c
])
return
tf
.
reshape
(
data
,
[
bs
,
h
*
scale
,
w
*
scale
,
c
])
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