MCPcopy Create free account
hub / github.com/tdrussell/diffusion-pipe / init_weights

Method init_weights

models/cosmos_predict2_modeling.py:1029–1033  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1027 torch.nn.init.zeros_(self.adaln_modulation_mlp[1].weight)
1028
1029 def init_weights(self) -> None:
1030 self.reset_parameters()
1031 self.self_attn.init_weights()
1032 self.cross_attn.init_weights()
1033 self.mlp.init_weights()
1034
1035 def forward(
1036 self,

Callers 1

init_weightsMethod · 0.45

Calls 1

reset_parametersMethod · 0.95

Tested by

no test coverage detected