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

Function sequential_model

tests/unit/pipe/test_pipe_module.py:27–32  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

25
26@pytest.fixture
27def sequential_model():
28 model = torch.nn.Sequential(
29 *[nn.Linear(HIDDEN_DIM, HIDDEN_DIM) for _ in range(LAYERS)],
30 nn.Linear(HIDDEN_DIM, 1),
31 )
32 return model
33
34
35@pytest.fixture

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected