MCPcopy Create free account
hub / github.com/XLearning-SCU/2022-CVPR-DART / weights_init_classifier

Function weights_init_classifier

model.py:84–89  ·  view source on GitHub ↗
(m)

Source from the content-addressed store, hash-verified

82 init.zeros_(m.bias.data)
83
84def weights_init_classifier(m):
85 classname = m.__class__.__name__
86 if classname.find('Linear') != -1:
87 init.normal_(m.weight.data, 0, 0.001)
88 if m.bias:
89 init.zeros_(m.bias.data)
90
91
92

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected