Pytorch example encoded_input fix

#1
by DimOgu - opened

There is a problem like in t5-large from hugging face" with 'size'. Link to solved issue https://github.com/huggingface/transformers/issues/5480.
The returned object is a dict, not a tensor for the model. ['input_ids'] fixes PyTorch example.

Ready to merge
This branch is ready to get merged automatically.

Sign up or log in to comment