(input_ids=None, attention_mask=None, labels=None, **kwargs)
| 386 | |
| 387 | # Create a wrapper that calls pre_forward_hook |
| 388 | def forward_wrapper(input_ids=None, attention_mask=None, labels=None, **kwargs): |
| 389 | return self.pre_forward_hook(input_ids=input_ids, attention_mask=attention_mask, labels=labels, **kwargs) |
| 390 | |
| 391 | # Override the model's forward with our wrapper |
| 392 | model.forward = forward_wrapper |
nothing calls this directly
no test coverage detected