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

Method __init__

SwissArmyTransformer/sat/model/official/mae_model.py:21–23  ·  view source on GitHub ↗
(self, hidden_size, old_property, property, init_method_std=0.02)

Source from the content-addressed store, hash-verified

19
20class PosMixin(InterpolatedPositionEmbeddingMixin):
21 def __init__(self, hidden_size, old_property, property, init_method_std=0.02):
22 super().__init__(hidden_size, old_property, property, init_method_std=init_method_std)
23 self.hidden_size = hidden_size
24
25 def reinit(self, parent_model=None):
26 old_weight = self.transformer.position_embeddings.weight.data

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected