I use resnet50 + upsampling as my network.
model = resnet50_up()
And I want to use GPU, so I add the code:
model = model.cuda()
But it takes really really long time. I just want to know, is it normal because I use resnet50?
Besides, these code below:
import torch
from datetime import datetime
for i in range(10):
x = torch.randn(10, 10, 10, 10) # similar timings regardless of the tensor size
t1 = datetime.now()
x.cuda()
print(i, datetime.now() - t1)
It also takes me some time.
I am so confused…
I use anaconda install the Pytorch, the version is 0.3.0. The system is Titan Xp.
cuda 8.0 cudnn 7.0.5.
Thanks!