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

Method __init__

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

Source from the content-addressed store, hash-verified

138class UnusedParametersModel(SimpleModel):
139
140 def __init__(self, hidden_dim, empty_grad=False):
141 super().__init__(hidden_dim, empty_grad)
142
143 self.unused_linear = torch.nn.Linear(hidden_dim, hidden_dim)
144
145
146class LinearStack(torch.nn.Module):

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected