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

Method between_steps

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

Source from the content-addressed store, hash-verified

23
24
25 def between_steps(self):
26 # if len(self.attention_store) == 0:
27 # self.attention_store = self.step_store
28 # else:
29 # for key in self.attention_store:
30 # for i in range(len(self.attention_store[key])):
31 # self.attention_store[key][i] += self.step_store[key][i]
32 self.step_store = self.get_empty_store()
33
34 # def get_average_attention(self):
35 # # average_attention = {key: [item / self.cur_step for item in self.attention_store[key]] for key in self.attention_store}

Callers

nothing calls this directly

Calls 1

get_empty_storeMethod · 0.95

Tested by

no test coverage detected