I am trying to do pytorch tutorial. When I try to set their device as cuda, it does not work and my code running get stuck.
For specific information, I am using conda environment of python 3.7.3 pytorch 1.3.0 cuda 10.2 (NVIDIA RTX2080TI)
>>> import torch
>>> torch.cuda.is_available()
True
>>> torch.cuda.device_count()
1
>>> torch.cuda.current_device()
0
>>> device = torch.device('cuda:0')
>>> device
device(type='cuda', index=0)
>>> aa = torch.randn(5)
>>> aa = tensor([-2.2084, -0.2700, 0.0921, -1.7678, 0.7642])
>>> aa.to(device)
nothing happens...
Can anybody please help me how to overcome this problem?