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

Method forward

codegeex/paddle/codegeex_model.py:40–47  ·  view source on GitHub ↗
(self, hidden_states)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected