MCPcopy 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
31def param_is_not_shared(param):
32 return not hasattr(param, "shared") or not param.shared
33
34
35class MegatronModule(torch.nn.Module):

Callers 3

calc_params_l2_normFunction · 0.90
clip_grad_norm_fp32Function · 0.90
count_zeros_fp32Function · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected