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

Class WrapperLeafModule

tests/unit/runtime/zero/test_zero_leaf_module.py:139–146  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

137
138
139class WrapperLeafModule(nn.Module):
140
141 def __init__(self, hidden_dim):
142 super(WrapperLeafModule, self).__init__()
143 self.child = SubLeafModule(hidden_dim)
144
145 def forward(self, x):
146 return self.child(x)
147
148
149def test_set_leaf_modules_with_fully_qualified_name():

Calls

no outgoing calls