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

Class MLPHooks

neuron_explainer/models/hooks.py:179–183  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

177
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 2

forwardMethod · 0.90
__init__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected