MCPcopy Create free account
hub / github.com/VisionXLab/OF-Diff / hook

Function hook

ldm/modules/midas/midas/vit.py:160–161  ·  view source on GitHub ↗
(model, input, output)

Source from the content-addressed store, hash-verified

158
159def get_activation(name):
160 def hook(model, input, output):
161 activations[name] = output
162
163 return hook
164

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected