Skip to content

Commit 388f1ac

Browse files
committed
Insert needed space as seperator.
1 parent f3f1311 commit 388f1ac

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

TensorFlow/LanguageModeling/BERT/run_squad.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -936,12 +936,12 @@ def serving_input_fn():
936936
def main(_):
937937
# causes memory fragmentation for bert leading to OOM
938938
if os.environ.get("TF_XLA_FLAGS", None) is not None:
939-
os.environ["TF_XLA_FLAGS"] += "--tf_xla_enable_lazy_compilation=false"
939+
os.environ["TF_XLA_FLAGS"] += " --tf_xla_enable_lazy_compilation=false"
940940
else:
941941
os.environ["TF_XLA_FLAGS"] = "--tf_xla_enable_lazy_compilation=false"
942942

943943
# Enable async_io to speed up multi-gpu training with XLA and Horovod.
944-
os.environ["TF_XLA_FLAGS"] += "--tf_xla_async_io_level=1"
944+
os.environ["TF_XLA_FLAGS"] += " --tf_xla_async_io_level=1"
945945

946946
tf.compat.v1.logging.set_verbosity(tf.compat.v1.logging.INFO)
947947
dllogging = utils.dllogger_class.dllogger_class(FLAGS.dllog_path)

0 commit comments

Comments
 (0)