Skip to content
This repository has been archived by the owner on Feb 25, 2022. It is now read-only.

Commit

Permalink
removed a consider-using-in pitfall case
Browse files Browse the repository at this point in the history
  • Loading branch information
NaelsonDouglas committed Oct 24, 2021
1 parent 7fbd31b commit 8f55f6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion model_fns.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ def scaffold_fn():
prediction_hooks=[mtf.MtfRestoreHook(lowering)])

# We're not predicting, so we better be training or evaluating
assert (mode == tf.estimator.ModeKeys.TRAIN or mode == tf.estimator.ModeKeys.EVAL)
assert mode in [tf.estimator.ModeKeys.TRAIN, tf.estimator.ModeKeys.EVAL]

if mode == tf.estimator.ModeKeys.TRAIN:
# Gets number of microbatches per batch for serialized training
Expand Down

0 comments on commit 8f55f6c

Please sign in to comment.