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
7580f0a2
Commit
7580f0a2
authored
Jun 02, 2020
by
Hongkun Yu
Committed by
A. Unique TensorFlower
Jun 02, 2020
Browse files
write_meta_graph=False as we do not care the graph.
PiperOrigin-RevId: 314394246
parent
8eb91073
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
official/nlp/bert/tf1_checkpoint_converter_lib.py
official/nlp/bert/tf1_checkpoint_converter_lib.py
+1
-1
No files found.
official/nlp/bert/tf1_checkpoint_converter_lib.py
View file @
7580f0a2
...
@@ -188,7 +188,7 @@ def convert(checkpoint_from_path,
...
@@ -188,7 +188,7 @@ def convert(checkpoint_from_path,
with
tf
.
Session
()
as
sess
:
with
tf
.
Session
()
as
sess
:
sess
.
run
(
tf
.
global_variables_initializer
())
sess
.
run
(
tf
.
global_variables_initializer
())
tf
.
logging
.
info
(
"Writing checkpoint_to_path %s"
,
checkpoint_to_path
)
tf
.
logging
.
info
(
"Writing checkpoint_to_path %s"
,
checkpoint_to_path
)
saver
.
save
(
sess
,
checkpoint_to_path
)
saver
.
save
(
sess
,
checkpoint_to_path
,
write_meta_graph
=
False
)
tf
.
logging
.
info
(
"Summary:"
)
tf
.
logging
.
info
(
"Summary:"
)
tf
.
logging
.
info
(
" Converted %d variable name(s)."
,
len
(
new_variable_map
))
tf
.
logging
.
info
(
" Converted %d variable name(s)."
,
len
(
new_variable_map
))
...
...
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