MCPcopy Create free account
hub / github.com/deepspeedai/DeepSpeed / __init__

Method __init__

tests/unit/simple_model.py:151–154  ·  view source on GitHub ↗
(self, hidden_dim, empty_grad=False)

Source from the content-addressed store, hash-verified

149class UnusedParametersModel(SimpleModel):
150
151 def __init__(self, hidden_dim, empty_grad=False):
152 super().__init__(hidden_dim, empty_grad)
153
154 self.unused_linear = torch.nn.Linear(hidden_dim, hidden_dim)
155
156
157class LinearStack(torch.nn.Module):

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected