MCPcopy Create free account
hub / github.com/NineAbyss/ZeroG / forward

Method forward

code/utils.py:273–278  ·  view source on GitHub ↗
(self, x: torch.Tensor)

Source from the content-addressed store, hash-verified

271 self.norm = nn.LayerNorm(target_dim)
272
273 def forward(self, x: torch.Tensor) -> torch.Tensor:
274 x = self.linear1(x)
275 x = F.gelu(x)
276 x = self.linear2(x)
277 x = self.norm(x)
278 return x
279
280class alignMLP(nn.Module):
281 def __init__(self, input_dim, hidden_dim, output_dim):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected