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