MCPcopy Create free account
hub / github.com/THUDM/GLM / normal_init_method

Function normal_init_method

model/modeling_bert.py:42–46  ·  view source on GitHub ↗
(mean, std)

Source from the content-addressed store, hash-verified

40
41
42def normal_init_method(mean, std):
43 def init_(tensor):
44 return torch.nn.init.normal_(tensor, mean=mean, std=std)
45
46 return init_
47
48
49def scaled_init_method(mean, std, num_layers):

Callers 2

__init__Method · 0.85
__init__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected