Caffe2 - Python API
A deep learning, cross platform ML framework
test_indexing_cuda.py
1 import torch
2 from test_indexing import *
3 
4 
5 if __name__ == '__main__':
7  torch.set_default_tensor_type(torch.cuda.FloatTensor)
8  run_tests()
9  else:
10  print("Skipping test_indexing_cuda.py")
def is_available()
Definition: __init__.py:45
def set_default_tensor_type(t)
Definition: __init__.py:132