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

Method __init__

tests/unit/runtime/pipe/test_pipe.py:204–207  ·  view source on GitHub ↗
(self, hidden_size)

Source from the content-addressed store, hash-verified

202class DynamicShapeTestLayer(nn.Module):
203
204 def __init__(self, hidden_size):
205 super().__init__()
206 self.fc = nn.Linear(hidden_size, hidden_size)
207 self.shapes = set()
208
209 def forward(self, x):
210 self.shapes.add(x.shape)

Callers 1

__init__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected