код выглядит следующим образом:
Код: Выделить всё
torch.__version__
torch.load('featurs.pkl',map_location='cpu')
>>>
'1.0.1.post2'
Attempting to deserialize object on a CUDA device
but torch.cuda.is_available() is False. If you are running
on a CPU-only machine, please use torch.load with map_location='cpu'
to map your storages to the CPU.
Заранее спасибо!
Подробнее здесь: https://stackoverflow.com/questions/570 ... gpu-to-cpu
Мобильная версия