MCPcopy Create free account
hub / github.com/QWTforGithub/T2LDM / encode_text

Method encode_text

models/T5/T5.py:77–81  ·  view source on GitHub ↗
(self, tokens, **kwargs)

Source from the content-addressed store, hash-verified

75 return tokens
76
77 def encode_text(self, tokens, **kwargs):
78
79 outputs = self.encoder(**tokens)
80
81 return outputs.last_hidden_state
82
83 def forward(self, texts):
84

Callers 10

get_text_featuresFunction · 0.45
trainFunction · 0.45
get_text_featuresFunction · 0.45
get_text_featuresFunction · 0.45
trainFunction · 0.45
get_text_featuresFunction · 0.45
trainFunction · 0.45
get_text_featuresFunction · 0.45
trainFunction · 0.45
T5.pyFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected