phasen
phasen copied to clipboard
How training with cpu
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
You can change
outputs, wav = data_parallel(model, (inputs, ))
to
outputs, wav = model(inputs )
it works,thanks