MCPcopy Create free account
hub / github.com/Monalissaa/DisenDiff / get_average_attention

Method get_average_attention

src/attention_controllers.py:210–212  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

208
209
210 def get_average_attention(self):
211 average_attention = {key: [item / self.cur_step for item in self.attention_store[key]] for key in self.attention_store}
212 return average_attention
213
214
215 def reset(self):

Callers 2

aggregate_attentionFunction · 0.80
aggregate_attention_allFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected