As you’ve described, the error is raised, since a tensor instead of a tuple is expected.
Could you explain a bit, what the model is returning and what the tuple contains?
I guess you could index it to solve this error, but it’s difficult to recommend the right approach without knowing what the tuple represents.