MCPcopy Create free account
hub / github.com/SooLab/CGFormer / forward

Method forward

bert/modeling_bert.py:504–507  ·  view source on GitHub ↗
(self, hidden_states)

Source from the content-addressed store, hash-verified

502 self.decoder.bias = self.bias
503
504 def forward(self, hidden_states):
505 hidden_states = self.transform(hidden_states)
506 hidden_states = self.decoder(hidden_states)
507 return hidden_states
508
509
510class BertOnlyMLMHead(nn.Module):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected