MCPcopy Create free account
hub / github.com/Mew233/pairwise / hook

Function hook

pairwise/dataloader.py:1111–1115  ·  view source on GitHub ↗
(model, input, output)

Source from the content-addressed store, hash-verified

1109 activation = {}
1110 def getActivation(name):
1111 def hook(model, input, output):
1112 if name in activation:
1113 activation[name].append(output.detach())
1114 else:
1115 activation[name] = [output.detach()]
1116 return hook
1117
1118 if args.model == 'TGSynergy':

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected