Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OpenDriveLab/ReSim
/ sqrt
Function
sqrt
SwissArmyTransformer/sat/mpu/utils.py:81–82 ·
view source on GitHub ↗
(x)
Source
from the content-addressed store, hash-verified
79
per_partition_vocab_size, rank, world_size)
80
81
def
sqrt(x):
82
return
int(math.sqrt(x) + 1e-4)
83
84
def
unscaled_init_method(sigma):
85
""
"Init method based on N(0, sigma)."
""
Callers
2
sparse_attention_2d_light
Function · 0.90
__init__
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected