MCPcopy Create free account
hub / github.com/SwinTransformer/Transformer-SSL / forward

Method forward

models/moby.py:184–188  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

182 self.linear_out = nn.Linear(in_dim if num_layers == 1 else inner_dim, out_dim) if num_layers >= 1 else nn.Identity()
183
184 def forward(self, x):
185 x = self.linear_hidden(x)
186 x = self.linear_out(x)
187
188 return x

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected