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

Method __init__

SwissArmyTransformer/sat/model/official/mae_model.py:99–102  ·  view source on GitHub ↗
(self, args)

Source from the content-addressed store, hash-verified

97
98class MaskMixin(BaseMixin):
99 def __init__(self, args):
100 super().__init__()
101 self.decoder_embed = nn.Linear(args.enc_hidden_size, args.hidden_size, bias=True)
102 self.decoder_pred = nn.Linear(args.hidden_size, args.patch_size**2 * args.in_channels, bias=True) # decoder to patch
103
104 def word_embedding_forward(self, input_ids, **kwargs):
105 x = kwargs["encoder_outputs"]

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected