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

Method forward

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

Source from the content-addressed store, hash-verified

481 self.LayerNorm = BertLayerNorm(config.hidden_size, eps=config.layer_norm_eps)
482
483 def forward(self, hidden_states):
484 hidden_states = self.dense(hidden_states)
485 hidden_states = self.transform_act_fn(hidden_states)
486 hidden_states = self.LayerNorm(hidden_states)
487 return hidden_states
488
489
490class BertLMPredictionHead(nn.Module):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected