-
Notifications
You must be signed in to change notification settings - Fork 87
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: bool value of Tensor with more than one value is ambiguous #16
Comments
Same problem here. Does anyone know why? |
preprocessed data was found and loaded |
According to the note, if you delete following lines in selfModules/neg.py, it will work just fine. |
yeah, the code is to do 'parameters_allocation_check', i deleted them and it worked, but i dont know whether it influence the output or not. |
Currently working on Python 3.6.9 and facing the same issue. After removing the parameters_allocation_check code (quoted above), I faced additional errors and this is how I solved them. (P.S. line number might differ) ValueError: 'Object arrays cannot be loaded when allow_pickle=False'
IndexError: too many indices for array: array is 0-dimensional, but 1 were indexed
This allowed me to run the codes and build a custom word embedding successfully. Still studying the impact it has on the word embeddings so please use at your own discretion. Hope this helps the others! |
File "/home/sarvesh23/pytorch_RVAE/utils/functional.py", line 6, in f_and
return x and y
RuntimeError: bool value of Tensor with more than one value is ambiguous
I am running train_word_embeddings.py. Any hint what I am doing wrong ?
The text was updated successfully, but these errors were encountered: