Unverified Commit 466aa57a authored by Lysandre Debut's avatar Lysandre Debut Committed by GitHub
Browse files

Don't init TPU device twice (#4916)

parent ef2dcdcc
......@@ -71,9 +71,7 @@ except ImportError:
try:
import torch_xla.core.xla_model as xm
tpu_device = xm.xla_device()
import torch_xla.core.xla_model as xm # noqa: F401
if _torch_available:
_torch_tpu_available = True # pylint: disable=
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment