MCPcopy Create free account
hub / github.com/OpenMOSS/MOSS / set_input_embeddings

Method set_input_embeddings

models/modeling_moss.py:413–414  ·  view source on GitHub ↗
(self, new_embeddings)

Source from the content-addressed store, hash-verified

411 return self.wte
412
413 def set_input_embeddings(self, new_embeddings):
414 self.wte = new_embeddings
415
416 @add_start_docstrings_to_model_forward(MOSS_INPUTS_DOCSTRING.format("batch_size, sequence_length"))
417 @add_code_sample_docstrings(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected