File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
TensorFlow2/Classification/ConvNets/utils Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments