(self)
| 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} |
nothing calls this directly
no test coverage detected