Closed rbracco closed 3 years ago
Thanks for the snippet, does the problem persist if you convert your torch tensor to a numpy array before decoding? eg probabilities.numpy()
Wow, thank you for the lightning fast reply.
Changing decoder.decode(probabilities)
to decoder.decode(probabilities.detach().numpy())
fixed the issue! Cheers.
great! :)
I am following the basic tutorial and when decoding probabilities with no language model I run into an error during the decode step.
Env info
Code
Stack Trace