MCPcopy Create free account
hub / github.com/RightNow-AI/autokernel / forward

Method forward

models/gpt2.py:65–70  ·  view source on GitHub ↗
(self, x: torch.Tensor)

Source from the content-addressed store, hash-verified

63 self.dropout = nn.Dropout(dropout)
64
65 def forward(self, x: torch.Tensor) -> torch.Tensor:
66 x = self.c_fc(x)
67 x = self.gelu(x)
68 x = self.c_proj(x)
69 x = self.dropout(x)
70 return x
71
72
73class Block(nn.Module):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected