mirror of
https://github.com/wassname/pytorch-lightning.git
synced 2026-10-28 13:20:31 +08:00
1 parent
6dae5698ef
commit
29cbc9e723
1 file changed
+1
-1
@@ -489,7 +489,7 @@ class TrainerDPMixin(ABC):
|
||||
|
||||
# init 16 bit for TPU
|
||||
if self.precision == 16:
|
||||
os.environ['XLA_USE_BF16'] = 1
|
||||
os.environ['XLA_USE_BF16'] = str(1)
|
||||
|
||||
m = f'INIT TPU local core: {self.tpu_local_core_rank}, ' \
|
||||
f'global rank: {self.tpu_global_core_rank}'
|
||||
|
||||
Reference in new issue
Block a user