"vscode:/vscode.git/clone" did not exist on "6febde72007050cf842c9014834c7e53d07d4453"
Commit b1a78200 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 bf451b65
......@@ -125,7 +125,7 @@ def run(flags_obj):
per_epoch_steps, train_epochs, eval_steps = get_num_train_iterations(
flags_obj)
if flags_obj.steps_per_loop is None:
if not flags_obj.steps_per_loop:
steps_per_loop = per_epoch_steps
elif flags_obj.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