MCPcopy Create free account
hub / github.com/alinlab/SelfPatch / init_weights

Method init_weights

segmentation/backbones/swin.py:75–76  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

73 self.softmax = nn.Softmax(dim=-1)
74
75 def init_weights(self):
76 trunc_normal_init(self.relative_position_bias_table, std=0.02)
77
78 def forward(self, x, mask=None):
79 """

Callers 1

mainFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected