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

Method forward

models/bert_base.py:51–52  ·  view source on GitHub ↗
(self, x: torch.Tensor)

Source from the content-addressed store, hash-verified

49 self.dropout = nn.Dropout(dropout)
50
51 def forward(self, x: torch.Tensor) -> torch.Tensor:
52 return self.dropout(self.dense2(self.gelu(self.dense1(x))))
53
54
55class BertLayer(nn.Module):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected