(self)
| 47 | |
| 48 | class DummyModel(nn.Module): |
| 49 | def __init__(self): |
| 50 | super().__init__() |
| 51 | # Add some (unused) params otherwise DDP will complain. |
| 52 | self.fc = nn.Linear(120, 80) |
| 53 | |
| 54 | def forward(self, input_ids, labels=None): |
| 55 | if labels is not None: |
nothing calls this directly
no outgoing calls
no test coverage detected