MCPcopy
hub / github.com/openai/transformer-debugger / __init__

Method __init__

neuron_explainer/models/hooks.py:180–183  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

178
179class MLPHooks(HookCollection):
180 def __init__(self):
181 super().__init__()
182 self.add_subhooks("pre_act", FwdBwdHooks())
183 self.add_subhooks("post_act", FwdBwdHooks())
184
185
186class NormalizationHooks(HookCollection):

Callers

nothing calls this directly

Calls 3

FwdBwdHooksClass · 0.85
add_subhooksMethod · 0.80
__init__Method · 0.45

Tested by

no test coverage detected