MCPcopy Create free account
hub / github.com/boyiwei/alignment-attribution-code / clear_act_buffer

Method clear_act_buffer

main_low_rank_diff.py:29–30  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

27 self.record_activation = True
28
29 def clear_act_buffer(self):
30 self.activation_norms = []
31
32 def forward(self, x):
33 if self.record_activation:

Callers 2

clear_act_bufferFunction · 0.45
make_low_rankFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected