pulling attention maps from UNI

#4
by Siyuan726 - opened

Hello, I wonder if anyone knows how to extract attentions from the last layer of UNI? I want to plot attention maps for each head. Thanks in advance!

In general, pytorch's hook is your friend.

Did you resolved your issue?

Your need to confirm your account before you can post a new comment.

Sign up or log in to comment