Attention and hidden state details from t5

I would like to know how to get the attention and hidden state details from t5-small

When I am trying to load the pre-trained model with output_hidden_states=True, output_attentions=True , I get list out of index error in modeling_tf_t5.py file at line 574

any help on how to make it work?