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
b766f6f4
Commit
b766f6f4
authored
Sep 01, 2022
by
A. Unique TensorFlower
Browse files
Internal change
PiperOrigin-RevId: 471602044
parent
d59e9237
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
official/projects/edgetpu/vision/serving/export_util.py
official/projects/edgetpu/vision/serving/export_util.py
+6
-0
No files found.
official/projects/edgetpu/vision/serving/export_util.py
View file @
b766f6f4
...
@@ -107,6 +107,12 @@ class ExportConfig(base_config.Config):
...
@@ -107,6 +107,12 @@ class ExportConfig(base_config.Config):
def
finalize_serving
(
model_output
,
export_config
):
def
finalize_serving
(
model_output
,
export_config
):
"""Adds extra layers based on the provided configuration."""
"""Adds extra layers based on the provided configuration."""
if
isinstance
(
model_output
,
dict
):
return
{
key
:
finalize_serving
(
model_output
[
key
],
export_config
)
for
key
in
model_output
}
finalize_method
=
export_config
.
finalize_method
finalize_method
=
export_config
.
finalize_method
output_layer
=
model_output
output_layer
=
model_output
if
not
finalize_method
or
finalize_method
[
0
]
==
'none'
:
if
not
finalize_method
or
finalize_method
[
0
]
==
'none'
:
...
...
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