Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
smart_tokenizer_and_embedding_resize
Function · 0.45
tie_weights
Function · 0.45
save_checkpoints
Method · 0.45
__init__
Method · 0.45
build_optimizer
Method · 0.45
train_loop
Method · 0.45
post_encode
Method · 0.45
post_encode
Method · 0.45
__init__
Method · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected