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
c7807662
Commit
c7807662
authored
Dec 30, 2020
by
Rajagopal Ananthanarayanan
Committed by
A. Unique TensorFlower
Dec 30, 2020
Browse files
Internal change
PiperOrigin-RevId: 349583222
parent
45837d86
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
official/vision/beta/serving/export_base.py
official/vision/beta/serving/export_base.py
+5
-1
No files found.
official/vision/beta/serving/export_base.py
View file @
c7807662
...
...
@@ -86,8 +86,12 @@ class ExportModule(tf.Module, metaclass=abc.ABCMeta):
tf
.
map_fn
(
_decode_tf_example
,
elems
=
input_tensor
,
# Height/width of the shape of input images is unspecified (None)
# at the time of decoding the example, but the shape will
# be adjusted to conform to the input layer of the model,
# by _run_inference_on_image_tensors() below.
fn_output_signature
=
tf
.
TensorSpec
(
shape
=
self
.
_input_image_size
+
[
3
],
dtype
=
tf
.
uint8
),
shape
=
[
None
,
None
,
3
],
dtype
=
tf
.
uint8
),
dtype
=
tf
.
uint8
,
parallel_iterations
=
32
))
images
=
tf
.
stack
(
images
)
...
...
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