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:
fastai.torch_core.defaults.device = 'cpu'
defaults.device = torch.device('cpu')
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.