Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/THUDM/GLM
/ init_
Function
init_
mpu/transformer.py:587–588 ·
view source on GitHub ↗
(tensor)
Source
from the content-addressed store, hash-verified
585
""
"Init method based on N(0, sigma)."
""
586
587
def
init_(tensor):
588
return
torch.nn.init.normal_(tensor, mean=0.0, std=sigma)
589
590
return
init_
591
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected