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

Method decode

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

Source from the content-addressed store, hash-verified

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,
272 cross_attention_mask=cross_attention_mask, **kw_args)
273
274 def forward(self, enc_input_ids, dec_input_ids, *, enc_attention_mask=None, dec_attention_mask=None,
275 cross_attention_mask=None, **kw_args):

Callers 1

forwardMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected