[hotfix] removed unused flag (#5242)

This commit is contained in:
Frank Lee
2024-01-09 14:57:07 +08:00
committed by GitHub
parent d202cc28c0
commit 9102d655ab
2 changed files with 2 additions and 5 deletions

View File

@@ -7,11 +7,8 @@ import torch.distributed as dist
from .base_accelerator import BaseAccelerator
IS_NPU_AVAILABLE = False
try:
import torch_npu # noqa
IS_NPU_AVAILABLE = True
except ImportError:
pass