Caffe2 - Python API
A deep learning, cross platform ML framework
Packages
Classes
Files
C++ API
Python API
GitHub
File List
test
test_indexing_cuda.py
1
import
torch
2
from
test_indexing
import
*
3
4
5
if
__name__ ==
'__main__'
:
6
if
torch.cuda.is_available
():
7
torch.set_default_tensor_type
(torch.cuda.FloatTensor)
8
run_tests()
9
else
:
10
print(
"Skipping test_indexing_cuda.py"
)
torch.cuda.is_available
def is_available()
Definition:
__init__.py:45
torch.set_default_tensor_type
def set_default_tensor_type(t)
Definition:
__init__.py:132
Generated on Thu Mar 21 2019 13:06:36 for Caffe2 - Python API by
1.8.11