MCPcopy Create free account
hub / github.com/JasonLSC/GSCodec_Studio / zero_init

Method zero_init

examples/utils.py:24–25  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

22 self.register_buffer("identity", torch.tensor([1.0, 0.0, 0.0, 0.0, 1.0, 0.0]))
23
24 def zero_init(self):
25 torch.nn.init.zeros_(self.embeds.weight)
26
27 def random_init(self, std: float):
28 torch.nn.init.normal_(self.embeds.weight, std=std)

Callers 3

__init__Method · 0.80
__init__Method · 0.80
__init__Method · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected