MCPcopy Create free account
hub / github.com/GGA23/GrokFormer / init_params

Function init_params

utils.py:17–21  ·  view source on GitHub ↗
(module)

Source from the content-addressed store, hash-verified

15
16
17def init_params(module):
18 if isinstance(module, nn.Linear):
19 module.weight.data.normal_(mean=0.0, std=0.01)
20 if module.bias is not None:
21 module.bias.data.zero_()
22
23
24def seed_everything(seed):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected