MCPcopy Create free account
hub / github.com/VCIP-RGBD/DFormer / init_weight

Function init_weight

utils/init_func.py:18–23  ·  view source on GitHub ↗
(module_list, conv_init, norm_layer, bn_eps, bn_momentum, **kwargs)

Source from the content-addressed store, hash-verified

16
17
18def init_weight(module_list, conv_init, norm_layer, bn_eps, bn_momentum, **kwargs):
19 if isinstance(module_list, list):
20 for feature in module_list:
21 __init_weight(feature, conv_init, norm_layer, bn_eps, bn_momentum, **kwargs)
22 else:
23 __init_weight(module_list, conv_init, norm_layer, bn_eps, bn_momentum, **kwargs)
24
25
26def group_weight(weight_group, module, norm_layer, lr):

Callers 1

init_weightsMethod · 0.90

Calls 1

__init_weightFunction · 0.85

Tested by

no test coverage detected