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

Method decode

SwissArmyTransformer/sat/model/official/mae_model.py:153–154  ·  view source on GitHub ↗
(self, input_ids, position_ids, attention_mask, encoder_outputs, ids_restore, **kw_args)

Source from the content-addressed store, hash-verified

151 return self.encoder(input_ids, position_ids, attention_mask, **kw_args)
152
153 def decode(self, input_ids, position_ids, attention_mask, encoder_outputs, ids_restore, **kw_args):
154 return self.decoder(input_ids, position_ids, attention_mask, encoder_outputs=encoder_outputs, ids_restore=ids_restore, **kw_args)
155
156 def forward(self, input_ids, enc_position_ids, dec_position_ids, *, enc_attention_mask=None, dec_attention_mask=None, **kw_args):
157 if enc_attention_mask is None:

Callers 15

forwardMethod · 0.95
chatFunction · 0.45
chatFunction · 0.45
chat_sat.pyFile · 0.45
chatFunction · 0.45
_runFunction · 0.45
chatMethod · 0.45
chatFunction · 0.45
chatMethod · 0.45
chatFunction · 0.45
_backup_cpuinfoMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected