

TITLE
Allow none-tensor fields in BatchEncoding

COMMENTS
1

REACTIONS
+1: 0
-1: 0
laugh: 0
hooray: 0
heart: 0
rocket: 0
eyes: 0

BODY
# What does this PR do?

This PR allows BatchEncoding to have non-tensor fields. This is useful for example when doing multi-task learning, I can add a task name (str) in the batch, and use it to decide the computation later on. 
Without this PR, I cannot use `.to('cuda')` if there is str in the batch.

I don't know who to tag. @LysandreJik

