kefirski / pytorch_RVAE

Recurrent Variational Autoencoder that generates sequential data implemented with pytorch
MIT License
357 stars 87 forks source link

Error while running train_word_embeddings.py #14

Closed SummmerSnow closed 5 years ago

SummmerSnow commented 5 years ago

File "/pytorch_RVAE-master/utils/functional.py", line 2, in fold return a if (len(l) == 0) else fold(f, l[1:], f(a, l[0])) File "/pytorch_RVAE-master/utils/functional.py", line 2, in fold return a if (len(l) == 0) else fold(f, l[1:], f(a, l[0])) File "/pytorch_RVAE-master/utils/functional.py", line 6, in f_and return (x and y) RuntimeError: bool value of Tensor with more than one value is ambiguous

berzentine commented 5 years ago

I have a similar error, how do you fix this?

SummmerSnow commented 5 years ago

I fix this according to previous issue, just need to comment out 'assert parameters_allocation_check' in neg.py as a workaround.

SummmerSnow commented 5 years ago

I have a similar error, how do you fix this?

I fix this according to previous issue, just need to comment out 'assert parameters_allocation_check' in neg.py as a workaround.