MCPcopy Create free account
hub / github.com/ChunmingHe/WS-SAM / initialize

Method initialize

lib/VIT/decoder/decoder_p.py:78–79  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

76 return (x - mu) / torch.sqrt(sigma+1e-5) * self.weight + self.bias
77
78 def initialize(self):
79 weight_init(self)
80
81class LayerNorm(nn.Module):
82 def __init__(self, dim, LayerNorm_type):

Callers

nothing calls this directly

Calls 1

weight_initFunction · 0.70

Tested by

no test coverage detected