MCPcopy Create free account
hub / github.com/antonioo-c/PiMAE / _reset_parameters

Method _reset_parameters

Pretrain/tutorial_load.py:51–55  ·  view source on GitHub ↗
(self, weight_init_name)

Source from the content-addressed store, hash-verified

49 self._reset_parameters(weight_init_name)
50
51 def _reset_parameters(self, weight_init_name):
52 func = WEIGHT_INIT_DICT[weight_init_name]
53 for p in self.parameters():
54 if p.dim() > 1:
55 func(p)
56
57 def forward(self, src,
58 mask: Optional[Tensor] = None,

Callers 1

__init__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected