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.py:31–33 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
29
self.record_activation = True
30
31
def
clear_act_buffer(self):
32
self.activation_norms.fill_(0.0)
33
self.n_samples = 0
34
35
def
forward(self, x):
36
# TODO: normalize for numerical stability
Callers
1
clear_act_buffer
Function · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected