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
87bc52c5
Commit
87bc52c5
authored
Nov 11, 2019
by
Yukun Zhu
Committed by
aquariusjay
Nov 11, 2019
Browse files
Fix init_fn in train_utils. (#7790)
parent
d48d036a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
research/deeplab/utils/train_utils.py
research/deeplab/utils/train_utils.py
+1
-1
No files found.
research/deeplab/utils/train_utils.py
View file @
87bc52c5
...
@@ -221,7 +221,7 @@ def get_model_init_fn(train_logdir,
...
@@ -221,7 +221,7 @@ def get_model_init_fn(train_logdir,
ignore_missing_vars
=
ignore_missing_vars
)
ignore_missing_vars
=
ignore_missing_vars
)
global_step
=
tf
.
train
.
get_or_create_global_step
()
global_step
=
tf
.
train
.
get_or_create_global_step
()
def
restore_fn
(
unused_scaffold
,
sess
):
def
restore_fn
(
sess
):
sess
.
run
(
init_op
,
init_feed_dict
)
sess
.
run
(
init_op
,
init_feed_dict
)
sess
.
run
([
global_step
])
sess
.
run
([
global_step
])
...
...
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