Sign in
android
/
platform
/
external
/
pytorch
/
bc51a0c22f
/
.
/
torch
/
cuda
/
amp
/
common.py
blob: c4e8c1cc99b00d63672e12f2908a82c899076306 [
file
] [
log
] [
blame
]
from
importlib
.
util
import
find_spec
import
torch
__all__
=
[
"amp_definitely_not_available"
]
def
amp_definitely_not_available
():
return
not
(
torch
.
cuda
.
is_available
()
or
find_spec
(
"torch_xla"
))