You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
hi,i met the erro,when i ran train.py,how can i solve the problem?thank you
Traceback (most recent call last):
File "train.py", line 180, in
train_fn(args)
File "train.py", line 157, in train_fn
waveform = mu_law_decode(np.asarray(samples[model.module.receptive_field:]),hparams.quantization_channels)
File "/usr/local/lib/python3.6/dist-packages/numpy/core/numeric.py", line 492, in asarray
return array(a, dtype, copy=False, order=order)
File "/usr/local/lib/python3.6/dist-packages/torch/tensor.py", line 450, in array
return self.numpy()
TypeError: can't convert CUDA tensor to numpy. Use Tensor.cpu() to copy the tensor to host memory first.
The text was updated successfully, but these errors were encountered:
hi,i met the erro,when i ran train.py,how can i solve the problem?thank you
Traceback (most recent call last):
File "train.py", line 180, in
train_fn(args)
File "train.py", line 157, in train_fn
waveform = mu_law_decode(np.asarray(samples[model.module.receptive_field:]),hparams.quantization_channels)
File "/usr/local/lib/python3.6/dist-packages/numpy/core/numeric.py", line 492, in asarray
return array(a, dtype, copy=False, order=order)
File "/usr/local/lib/python3.6/dist-packages/torch/tensor.py", line 450, in array
return self.numpy()
TypeError: can't convert CUDA tensor to numpy. Use Tensor.cpu() to copy the tensor to host memory first.
The text was updated successfully, but these errors were encountered: