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

Method __init__

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

Source from the content-addressed store, hash-verified

215class DynamicShapeTestModel(nn.Module):
216
217 def __init__(self, n_layers, hidden_size):
218 super().__init__()
219 self.layers = nn.ModuleList([DynamicShapeTestLayer(hidden_size) for _ in range(n_layers)])
220
221
222@pytest.mark.parametrize('topo_config', [

Callers

nothing calls this directly

Calls 2

__init__Method · 0.45

Tested by

no test coverage detected