phasen icon indicating copy to clipboard operation
phasen copied to clipboard

How training with cpu

Open jay678 opened this issue 6 years ago • 2 comments

I want to run this script, but my computer does not have a GPU. I tried to use the CPU to train, but it failed. How can it be compatible with the CPU?

I got error: outputs, wav = data_parallel(model, (inputs, )) File "torch/nn/parallel/data_parallel.py", line 190, in data_parallel output_device = device_ids[0] IndexError: list index out of range

jay678 avatar Feb 16 '20 15:02 jay678

You can change outputs, wav = data_parallel(model, (inputs, )) to outputs, wav = model(inputs )

huyanxin avatar Feb 17 '20 02:02 huyanxin

it works,thanks

jay678 avatar Mar 01 '20 14:03 jay678