Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/boyiwei/alignment-attribution-code
/ clear_act_buffer
Method
clear_act_buffer
lib/model_wrapper_low.py:28–29 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
26
self.record_activation = True
27
28
def
clear_act_buffer(self):
29
self.activation_norms = []
30
31
def
forward(self, x):
32
if
self.record_activation:
Callers
2
clear_act_buffer
Function · 0.45
make_low_rank
Function · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected