Hello,
I’m trying to set the fastai for inference on CPU. After reading all the recommendations on the forums, I have already tried the difference methods:
Method 1:
fastai.torch_core.defaults.device = 'cpu'
Method 2:
defaults.device = torch.device('cpu')
Method 3:
fastai.torch_core.defaults.device = torch.device('cpu')
However, I always observe that GPU is used when I run the fastai code. Could you help me a solution for this problem?
My conf is Windows 10, fastai 1.x, pytorch 1.x.