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
6d1dd03d
Commit
6d1dd03d
authored
Sep 05, 2019
by
Hongkun Yu
Committed by
A. Unique TensorFlower
Sep 05, 2019
Browse files
Remove vars dedup as keras fixed it.
PiperOrigin-RevId: 267525663
parent
32974988
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
official/bert/model_training_utils.py
official/bert/model_training_utils.py
+2
-3
No files found.
official/bert/model_training_utils.py
View file @
6d1dd03d
...
@@ -231,9 +231,8 @@ def run_customized_training_loop(
...
@@ -231,9 +231,8 @@ def run_customized_training_loop(
else
:
else
:
train_summary_writer
=
None
train_summary_writer
=
None
# De-dupes variables due to keras tracking issues.
# Collects training variables.
training_vars
=
list
({
id
(
v
):
v
for
v
in
model
.
trainable_variables
training_vars
=
model
.
trainable_variables
}.
values
())
def
_replicated_step
(
inputs
):
def
_replicated_step
(
inputs
):
"""Replicated training step."""
"""Replicated training 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