Commit 98abe4b8 authored by Hongkun Yu's avatar Hongkun Yu Committed by A. Unique TensorFlower
Browse files

Remove an assert.

PiperOrigin-RevId: 298402269
parent fae6ca34
...@@ -168,10 +168,6 @@ def run_customized_training_loop( ...@@ -168,10 +168,6 @@ def run_customized_training_loop(
assert tf.executing_eagerly() assert tf.executing_eagerly()
if run_eagerly: if run_eagerly:
if steps_per_loop > 1:
raise ValueError(
'steps_per_loop is used for performance optimization. When you want '
'to run eagerly, you cannot leverage graph mode loop.')
if isinstance(strategy, tf.distribute.experimental.TPUStrategy): if isinstance(strategy, tf.distribute.experimental.TPUStrategy):
raise ValueError( raise ValueError(
'TPUStrategy should not run eagerly as it heavily replies on graph' 'TPUStrategy should not run eagerly as it heavily replies on graph'
......
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