Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Packages
signaturizer
Commits
98f103cf
Commit
98f103cf
authored
Jul 02, 2020
by
Martino Bertoni
🌋
Browse files
remove debug prints
parent
a07fba00
Changes
1
Hide whitespace changes
Inline
Side-by-side
signaturizer/exporter.py
View file @
98f103cf
...
...
@@ -52,7 +52,6 @@ def export_savedmodel(savedmodel_path, destination,
if
tmp_path
is
None
:
tmp_path
=
tempfile
.
mkdtemp
()
# save to hub module format
print
(
'SAVE export_savedmodel'
)
with
tf
.
Graph
().
as_default
():
spec
=
hub
.
create_module_spec_from_saved_model
(
savedmodel_path
)
module
=
hub
.
Module
(
spec
,
tags
=
[
'serve'
])
...
...
@@ -60,7 +59,6 @@ def export_savedmodel(savedmodel_path, destination,
sess
.
run
(
tf
.
tables_initializer
())
sess
.
run
(
tf
.
global_variables_initializer
())
module
.
export
(
tmp_path
,
sess
)
print
(
'DONE export_savedmodel'
)
if
compress
:
# compress the exported files to destination
os
.
system
(
"tar -cz -f %s --owner=0 --group=0 -C %s ."
%
...
...
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