pytorch_RVAE
                                
                                 pytorch_RVAE copied to clipboard
                                
                                    pytorch_RVAE copied to clipboard
                            
                            
                            
                        Runtime error during 'python train.py'
I successfully ran the word embedding, but while training I get this runtime error. Any suggestions?
File "train.py", line 59, in 
delete .squeeze(2)
Does not seem to help
preprocessed data was found and loaded
Traceback (most recent call last):
File "train.py", line 59, in 
File "~/pytorch_RVAE/utils/functional.py", line 15, in parameters_allocation_check
return fold(f_and, parameters, True) or not fold(f_or, parameters, False)
File "~/pytorch_RVAE/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/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/utils/functional.py", line 6, in f_and
return x and y
File "/anaconda/lib/python3.5/site-packages/torch/autograd/variable.py", line 125, in bool
torch.typename(self.data) + " is ambiguous")
RuntimeError: bool value of Variable objects containing non-empty torch.FloatTensor is ambiguous
That's a different error. What I did for this was just always return True in parameters_allocation_check function.
@ruotianluo which version of pytorch do you working on?