You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You may meet "RuntimeError: indices should be either on cpu or on the same device as the indexed tensor (cpu)" in beam_search.k_best_ouputs Function #3
You can add
outputs = outputs.to(device)at this place to fix this bug.