MCPcopy Create free account
hub / github.com/modelscope/modelscope / get_input_embeddings

Method get_input_embeddings

modelscope/models/nlp/T5/backbone.py:959–960  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

957 torch.cuda.empty_cache()
958
959 def get_input_embeddings(self):
960 return self.embed_tokens
961
962 def set_input_embeddings(self, new_embeddings):
963 self.embed_tokens = new_embeddings

Callers 9

tie_weightsFunction · 0.45
save_checkpointsMethod · 0.45
__init__Method · 0.45
build_optimizerMethod · 0.45
train_loopMethod · 0.45
post_encodeMethod · 0.45
post_encodeMethod · 0.45
__init__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected