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
f2bc366e
"...text-generation-inference.git" did not exist on "0204946d26d4790c230c4aa4b35e261fd598fd5f"
Commit
f2bc366e
authored
Oct 29, 2021
by
Fan Yang
Committed by
A. Unique TensorFlower
Oct 29, 2021
Browse files
Internal change.
PiperOrigin-RevId: 406431760
parent
d4176a95
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
official/vision/beta/serving/export_module_factory.py
official/vision/beta/serving/export_module_factory.py
+5
-2
No files found.
official/vision/beta/serving/export_module_factory.py
View file @
f2bc366e
...
@@ -43,8 +43,11 @@ def create_classification_export_module(params: cfg.ExperimentConfig,
...
@@ -43,8 +43,11 @@ def create_classification_export_module(params: cfg.ExperimentConfig,
l2_regularizer
=
None
)
l2_regularizer
=
None
)
def
preprocess_fn
(
inputs
):
def
preprocess_fn
(
inputs
):
image_tensor
=
export_utils
.
parse_image
(
image_tensor
=
export_utils
.
parse_image
(
inputs
,
input_type
,
inputs
,
input_type
,
input_image_size
,
num_channels
)
input_image_size
,
num_channels
)
# If input_type is `tflite`, do not apply image preprocessing.
if
input_type
==
'tflite'
:
return
image_tensor
def
preprocess_image_fn
(
inputs
):
def
preprocess_image_fn
(
inputs
):
return
classification_input
.
Parser
.
inference_fn
(
return
classification_input
.
Parser
.
inference_fn
(
...
...
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