Skip to content

Commit 1e10352

Browse files
Victor49152nv-kkudrynski
authored andcommitted
[EfficientNet/TF2] remove tf async level flag
1 parent 442791a commit 1e10352

File tree

1 file changed

+3
-1
lines changed
  • TensorFlow2/Classification/ConvNets/utils

1 file changed

+3
-1
lines changed

TensorFlow2/Classification/ConvNets/utils/setup.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,10 @@ def set_flags(params):
4444
# we set tf_xla_async_io_level=0 for 2 reasons: 1) It turns out that XLA doesn't like
4545
# hvd.allreduce ops used in the custom train_step. Because of this issue, training never started.
4646
# 2) XLA doesn't like the tf.cond used in conditional mixing (model module).
47-
os.environ['TF_XLA_FLAGS'] = TF_XLA_FLAGS + " --tf_xla_auto_jit=1 --tf_xla_async_io_level=0"
4847

48+
# remove async flag since it's obsolete
49+
#os.environ['TF_XLA_FLAGS'] = TF_XLA_FLAGS + " --tf_xla_auto_jit=1 --tf_xla_async_io_level=0"
50+
os.environ['TF_XLA_FLAGS'] = TF_XLA_FLAGS + " --tf_xla_auto_jit=1"
4951
os.environ['TF_EXTRA_PTXAS_OPTIONS'] = "-sw200428197=true"
5052
tf.keras.backend.clear_session()
5153
tf.config.optimizer.set_jit(True)

0 commit comments

Comments
 (0)