File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
TensorFlow/LanguageModeling/BERT Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -936,12 +936,12 @@ def serving_input_fn():
936936def 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 )
You can’t perform that action at this time.
0 commit comments