Sign in
android
/
platform
/
external
/
pytorch
/
3df79f403e
/
.
/
test
/
test_indexing_cuda.py
blob: 9fccc00c53ed7755735b427af5451903ac11dbb3 [
file
] [
log
] [
blame
]
import
torch
from
test_indexing
import
*
if
__name__
==
'__main__'
:
if
torch
.
cuda
.
is_available
():
torch
.
set_default_tensor_type
(
torch
.
cuda
.
FloatTensor
)
run_tests
()
else
:
print
(
"Skipping test_indexing_cuda.py"
)