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

Method __init__

lib/model_wrapper_low.py:22–26  ·  view source on GitHub ↗
(self, base: nn.Linear)

Source from the content-addressed store, hash-verified

20 """
21
22 def __init__(self, base: nn.Linear):
23 super().__init__()
24 self.base = base
25 self.activation_norms = [] # offload to CPU
26 self.record_activation = True
27
28 def clear_act_buffer(self):
29 self.activation_norms = []

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected