Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/transformers/utils/import_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -738,7 +738,7 @@ def is_torch_xla_available(check_is_tpu=False, check_is_gpu=False) -> bool:
@lru_cache
def is_torch_neuroncore_available(check_device=True) -> bool:
if importlib.util.find_spec("torch_neuronx") is not None:
return is_torch_xla_available()
return is_torch_xla_available(check_is_gpu=check_device)
return False


Expand Down