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

Method forward

lib/VIT/decoder/decoder_p.py:104–109  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

102 self.project_out = nn.Conv2d(hidden_features, dim, kernel_size=1, bias=bias)
103
104 def forward(self, x):
105 x = self.project_in(x)
106 x1, x2 = self.dwconv(x).chunk(2, dim=1)
107 x = F.gelu(x1) * x2
108 x = self.project_out(x)
109 return x
110
111 def initialize(self):
112 weight_init(self)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected