Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/zai-org/CodeGeeX
/ param_is_not_shared
Function
param_is_not_shared
codegeex/megatron/model/module.py:31–32 ·
view source on GitHub ↗
(param)
Source
from the content-addressed store, hash-verified
29
30
31
def
param_is_not_shared(param):
32
return
not hasattr(param,
"shared"
) or not param.shared
33
34
35
class
MegatronModule(torch.nn.Module):
Callers
3
calc_params_l2_norm
Function · 0.90
clip_grad_norm_fp32
Function · 0.90
count_zeros_fp32
Function · 0.90
Calls
no outgoing calls
Tested by
no test coverage detected