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
9ac54873
Commit
9ac54873
authored
Oct 18, 2019
by
Hongkun Yu
Committed by
A. Unique TensorFlower
Oct 18, 2019
Browse files
Fix regression
PiperOrigin-RevId: 275603936
parent
49ba237d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
official/nlp/xlnet/training_utils.py
official/nlp/xlnet/training_utils.py
+1
-1
No files found.
official/nlp/xlnet/training_utils.py
View file @
9ac54873
...
@@ -143,7 +143,7 @@ def train(
...
@@ -143,7 +143,7 @@ def train(
transformer_xl
=
model
.
transformerxl_model
)
transformer_xl
=
model
.
transformerxl_model
)
else
:
else
:
checkpoint
=
tf
.
train
.
Checkpoint
(
model
=
model
)
checkpoint
=
tf
.
train
.
Checkpoint
(
model
=
model
)
checkpoint
.
restore
(
init_checkpoint
)
.
assert_existing_objects_matched
()
checkpoint
.
restore
(
init_checkpoint
)
model
.
optimizer
=
optimizer
model
.
optimizer
=
optimizer
...
...
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