WaveNet icon indicating copy to clipboard operation
WaveNet copied to clipboard

Generate_sample error?

Open yghcats opened this issue 6 years ago • 2 comments

In execution Generate_sample error :

sample = torch.cat((sample,new),dim=1) RuntimeError: zero-dimensional tensor (at position 1) cannot be concatenated

Can you tell me how to deal with it? thanks!

yghcats avatar Apr 17 '18 09:04 yghcats

I have the same error. 😞 Please reply.

RahulBhalley avatar Oct 11 '18 13:10 RahulBhalley

It is necessary to replace the line "new = m.sample ()" with "new = torch.reshape (m.sample (), (1, 1))". It helped me.

sovse avatar Nov 25 '18 16:11 sovse