MCPcopy Create free account
hub / github.com/THUDM/GLM / forward

Method forward

model/modeling_bert.py:471–474  ·  view source on GitHub ↗
(self, hidden_states)

Source from the content-addressed store, hash-verified

469 if isinstance(config.hidden_act, str) else config.hidden_act
470
471 def forward(self, hidden_states):
472 hidden_states = self.dense(hidden_states)
473 hidden_states = self.intermediate_act_fn(hidden_states)
474 return hidden_states
475
476
477class BertOutput(nn.Module):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected