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

Method forward

codegeex/paddle/codegeex_model.py:708–714  ·  view source on GitHub ↗
(self, input_ids, position_ids)

Source from the content-addressed store, hash-verified

706 self._position_embeddings_key = 'position_embeddings'
707
708 def forward(self, input_ids, position_ids):
709 # Embeddings.
710 words_embeddings = self.word_embeddings(input_ids)
711 position_embeddings = self.position_embeddings(position_ids)
712 embeddings = words_embeddings + position_embeddings
713
714 return embeddings
715
716 def state_dict_for_save_checkpoint(self, destination=None, prefix='',
717 keep_vars=False):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected