We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 895f81d commit b2d4ae9Copy full SHA for b2d4ae9
python/train.py
@@ -152,6 +152,9 @@ def trainlog(s):
152
multi_gpu_device_ids.append("/GPU:" + str(int(piece)))
153
num_gpus_used = len(multi_gpu_device_ids)
154
155
+# Fix for tensorflow 2.4: Not creating XLA devices, tf_xla_enable_xla_devices not set
156
+os.environ['TF_XLA_FLAGS'] = '--tf_xla_enable_xla_devices'
157
+
158
159
# MODEL ----------------------------------------------------------------
160
printed_model_yet = False
0 commit comments