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

Method forward

tests/unit/runtime/zero/test_zero_leaf_module.py:106–107  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

104 self.act_fn = nn.GELU()
105
106 def forward(self, x):
107 return self.down_proj(self.act_fn(self.gate_proj(x)) * self.up_proj(x))
108
109
110class FineGrainedBlock(nn.Module):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected