-
Notifications
You must be signed in to change notification settings - Fork 893
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
RuntimeError: Boolean value of Tensor with more than one value is ambiguous #847
Comments
I had the same issue and I tried a different |
@Aristotelis1 suggestion's works |
Hi, has there been a fix that includes beam_search? |
bro,what exactly is your operational process? |
The Coca model demo in the repo that's in a colab |
There is a solution in #860, hope it helps. : ) |
Thank you! |
The coca model demo not work and the wrong code is here:
the beam_scorer.is_done is like: ensor(False, device='cuda:0')
the stopping_criteria(input_ids, None) is like: tensor([False, False, False, False, False, False], device='cuda:0')
the beam_scorer.is_done or stopping_criteria(input_ids, None) is like tensor([False, False, False, False, False, False], device='cuda:0')
but when you run
if tensor([False, False, False, False, False, False], device='cuda:0')
it will case RuntimeError: Boolean value of Tensor with more than one value is ambiguousThe text was updated successfully, but these errors were encountered: