Open salokr opened 6 months ago
Looks like outputs.decoder_attentions is not a list of tensors but a list of tuples in your case. Please check the data type of attention variables.
Any updates on this? facing a similar problem with t5 + generate :)
I tried to visualize the attention maps for the T5 model but have encountered issues while getting the plots.
I would like to emphasize few points:
model.generate
because I don't have labels assumed in my real project andgenerate
can also output attentions.The error I am getting is: