MCPcopy Create free account
hub / github.com/huggingface/transformers / __init__

Method __init__

tests/test_trainer_distributed.py:49–52  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected