Error during decoding seq2seqlmoutput BERT [closed]
I am trying to detokenize bert model output like:
student_outputs = student_model(**batch)
student_outputs = tokenizer.batch_decode(student_outputs.logits['ids'].squeeze())
But facing with error:
TypeError: new(): invalid data type 'str'
How to properly decode the output in this case?