(self, *args, **kwargs)
| 41 | return method |
| 42 | |
| 43 | def wrapper(self, *args, **kwargs): |
| 44 | if hasattr(self, "_hf_hook") and hasattr(self._hf_hook, "pre_forward"): |
| 45 | self._hf_hook.pre_forward(self) |
| 46 | return method(self, *args, **kwargs) |
| 47 | |
| 48 | return wrapper |
nothing calls this directly
no outgoing calls
no test coverage detected