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
9616954e
Commit
9616954e
authored
Oct 21, 2019
by
Hongkun Yu
Committed by
A. Unique TensorFlower
Oct 21, 2019
Browse files
Adds save_steps to fix squad
PiperOrigin-RevId: 275994710
parent
128326ca
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
3 deletions
+4
-3
official/nlp/xlnet/common_flags.py
official/nlp/xlnet/common_flags.py
+1
-1
official/nlp/xlnet/run_classifier.py
official/nlp/xlnet/run_classifier.py
+1
-1
official/nlp/xlnet/run_squad.py
official/nlp/xlnet/run_squad.py
+2
-1
No files found.
official/nlp/xlnet/common_flags.py
View file @
9616954e
...
...
@@ -142,5 +142,5 @@ flags.DEFINE_integer(
default
=
16
,
help
=
"Size of the test batch across all hosts."
)
flags
.
DEFINE_integer
(
"save_steps"
,
default
=
None
,
help
=
"Number of steps for saving checkpoint."
)
"save_steps"
,
default
=
1000
,
help
=
"Number of steps for saving checkpoint."
)
FLAGS
=
flags
.
FLAGS
official/nlp/xlnet/run_classifier.py
View file @
9616954e
...
...
@@ -184,7 +184,7 @@ def main(unused_argv):
optimizer
=
optimizer
,
learning_rate_fn
=
learning_rate_fn
,
model_dir
=
FLAGS
.
model_dir
,
save_steps
=
1000
)
save_steps
=
FLAGS
.
save_steps
)
if
__name__
==
"__main__"
:
...
...
official/nlp/xlnet/run_squad.py
View file @
9616954e
...
...
@@ -288,7 +288,8 @@ def main(unused_argv):
steps_per_loop
=
steps_per_loop
,
optimizer
=
optimizer
,
learning_rate_fn
=
learning_rate_fn
,
model_dir
=
FLAGS
.
model_dir
)
model_dir
=
FLAGS
.
model_dir
,
save_steps
=
FLAGS
.
save_steps
)
if
__name__
==
"__main__"
:
...
...
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