MCPcopy Create free account
hub / github.com/AIS-SNU/Smart-Infinity / init_

Function init_

DeepSpeedExample/megatron/model/utils.py:27–28  ·  view source on GitHub ↗
(tensor)

Source from the content-addressed store, hash-verified

25def init_method_normal(sigma):
26 """Init method based on N(0, sigma)."""
27 def init_(tensor):
28 return torch.nn.init.normal_(tensor, mean=0.0, std=sigma)
29
30 return init_
31

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected