MCPcopy Create free account
hub / github.com/OpenDriveLab/ReSim / encode

Method encode

SwissArmyTransformer/sat/model/official/t5_model.py:267–268  ·  view source on GitHub ↗
(self, input_ids, attention_mask=None, **kw_args)

Source from the content-addressed store, hash-verified

265 parser.add_argument("--no-share-embeddings", action='store_true')
266
267 def encode(self, input_ids, attention_mask=None, **kw_args):
268 return super().encode(input_ids, None, attention_mask, **kw_args)
269
270 def decode(self, input_ids, attention_mask=None, encoder_outputs=None, cross_attention_mask=None, **kw_args):
271 return super().decode(input_ids, None, attention_mask, encoder_outputs=encoder_outputs,

Callers 1

forwardMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected