Contents:
Cross attention rollout: how much an object token attends to context tokens.
attns – dict or list where entries alternate self attention with shape [B heads S S] and cross attention with shape [B heads S K].
[B heads S S]
[B heads S K]
Rollout, shape [B S K]
[B S K]