Skip to content

Commit c3ec91c

Browse files
committed
Reverting changes on run_pretrainng.py
1 parent 7a0d4fb commit c3ec91c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

TensorFlow/LanguageModeling/BERT/run_pretraining.py

100755100644
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272

7373
flags.DEFINE_integer("num_warmup_steps", 10000, "Number of warmup steps.")
7474

75-
flags.DEFINE_integer("save_checkpoint_steps", 1000,
75+
flags.DEFINE_integer("save_checkpoints_steps", 1000,
7676
"How often to save the model checkpoint.")
7777

7878
flags.DEFINE_integer("iterations_per_loop", 1000,
@@ -477,7 +477,7 @@ def main(_):
477477
run_config = tf.estimator.RunConfig(
478478
model_dir=FLAGS.output_dir,
479479
session_config=config,
480-
save_checkpoints_steps=FLAGS.save_checkpoint_steps if not FLAGS.horovod or hvd.rank() == 0 else None,
480+
save_checkpoints_steps=FLAGS.save_checkpoints_steps if not FLAGS.horovod or hvd.rank() == 0 else None,
481481
# This variable controls how often estimator reports examples/sec.
482482
# Default value is every 100 steps.
483483
# When --report_loss is True, we set to very large value to prevent

0 commit comments

Comments
 (0)