# Undestarding output\_attentions= True

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fundestarding-output-attentions-true%2F63466%3E%5C
**Category:** 🤗Transformers\
**Created:** [November 25, 2023, 4:23am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fundestarding-output-attentions-true%2F63466 "2023-11-25T04:23:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mari22](https://avatars.discourse-cdn.com/v4/letter/m/57b2e6/32.png) [@Mari22](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FMari22)%5C
**Post date:** [November 25, 2023, 4:23am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fundestarding-output-attentions-true%2F63466%2F1 "2023-11-25T04:23:43Z")

</div>

I have a question about output\_attentions, and I need to make a heatmap about the attention of the final layer of the BERT model. But I do not know if the output\_attentions[0] is the first or last layer. I tried to check the documentation, but I did not find it.
