MCPcopy Create free account
hub / github.com/OpenDriveLab/ReSim / forward

Method forward

SwissArmyTransformer/sat/model/official/bert_model.py:15–20  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

13 self.decoder = nn.Linear(hidden_size, vocab_size)
14
15 def forward(self, x):
16 x = self.dense(x)
17 x = gelu(x)
18 x = self.layer_norm(x)
19 x = self.decoder(x)
20 return x
21
22class BertFinalMixin(BaseMixin):
23 def __init__(self, vocab_size, hidden_size):

Callers

nothing calls this directly

Calls 1

geluFunction · 0.70

Tested by

no test coverage detected