MCPcopy Create free account
hub / github.com/zai-org/CodeGeeX / forward

Method forward

codegeex/torch/codegeex_model.py:41–48  ·  view source on GitHub ↗
(self, hidden_states)

Source from the content-addressed store, hash-verified

39 )
40
41 def forward(self, hidden_states):
42 # [s, b, 4hp]
43 intermediate_parallel = self.dense_h_to_4h(hidden_states)
44 intermediate_parallel = self.activation_func(intermediate_parallel)
45 # [s, b, h]
46 output = self.dense_4h_to_h(intermediate_parallel)
47
48 return output
49
50
51class SelfAttention(torch.nn.Module):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected