"examples/pytorch/vscode:/vscode.git/clone" did not exist on "f8c9d58aed27939e0ae5c740ebc32013c4b6f6da"
Commit 809e19af authored by Jin Young Sohn's avatar Jin Young Sohn Committed by A. Unique TensorFlower
Browse files

Change `steps_per_loop` check as it's a integer flag

PiperOrigin-RevId: 321398549
parent 8b510f95
...@@ -125,7 +125,7 @@ def run(flags_obj): ...@@ -125,7 +125,7 @@ def run(flags_obj):
per_epoch_steps, train_epochs, eval_steps = get_num_train_iterations( per_epoch_steps, train_epochs, eval_steps = get_num_train_iterations(
flags_obj) flags_obj)
if flags_obj.steps_per_loop is None: if not flags_obj.steps_per_loop:
steps_per_loop = per_epoch_steps steps_per_loop = per_epoch_steps
elif flags_obj.steps_per_loop > per_epoch_steps: elif flags_obj.steps_per_loop > per_epoch_steps:
steps_per_loop = per_epoch_steps steps_per_loop = per_epoch_steps
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment