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

Method __init__

tests/unit/utils/test_debug_name_maps.py:37–40  ·  view source on GitHub ↗
(self, num_blocks=3, dim=8)

Source from the content-addressed store, hash-verified

35class _Model(nn.Module):
36
37 def __init__(self, num_blocks=3, dim=8):
38 super().__init__()
39 self.blocks = nn.ModuleList([_Block(dim) for _ in range(num_blocks)])
40 self.head = nn.Linear(dim, dim, bias=False)
41
42
43def test_names_resolve_and_fall_back():

Callers

nothing calls this directly

Calls 2

_BlockClass · 0.70
__init__Method · 0.45

Tested by

no test coverage detected