Yes, but it’s returning a variable of type list. Does your model take a list as input or a Tensor? And regardless of what type it should be, batch doesn’t have text as an attribute. (That’s what’s causing the error “list object has no attribute text”). Do the elements within batch have the attribute .text?