Skip to content

Commit

Permalink
follow fix #747
Browse files Browse the repository at this point in the history
  • Loading branch information
fsx950223 committed Sep 8, 2020
1 parent 009d6fe commit 9a5815a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions efficientdet/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
'evaluation.')
flags.DEFINE_integer('iterations_per_loop', 100,
'Number of iterations per TPU training loop')
flags.DEFINE_integer('save_checkpoints_steps', 5000,
flags.DEFINE_integer('save_checkpoints_steps', 100,
'Number of iterations per checkpoint save')
flags.DEFINE_string(
'training_file_pattern', None,
Expand Down Expand Up @@ -220,7 +220,6 @@ def _can_partition(spatial_dim):
FLAGS.iterations_per_loop if FLAGS.strategy == 'tpu' else 1,
num_cores_per_replica=num_cores_per_replica,
input_partition_dims=input_partition_dims,
save_checkpoints_steps=FLAGS.save_checkpoints_steps,
per_host_input_for_training=tf.estimator.tpu.InputPipelineConfig
.PER_HOST_V2)

Expand All @@ -232,6 +231,7 @@ def _can_partition(spatial_dim):
log_step_count_steps=FLAGS.iterations_per_loop,
session_config=config_proto,
tpu_config=tpu_config,
save_checkpoints_steps=FLAGS.save_checkpoints_steps,
tf_random_seed=FLAGS.tf_random_seed,
)
else:
Expand Down

0 comments on commit 9a5815a

Please sign in to comment.