MCPcopy Create free account
hub / github.com/UX-Decoder/Semantic-SAM / forward

Method forward

semantic_sam/body/decoder/modules.py:195–198  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

193 self.layers = nn.ModuleList(nn.Linear(n, k) for n, k in zip([input_dim] + h, h + [output_dim]))
194
195 def forward(self, x):
196 for i, layer in enumerate(self.layers):
197 x = F.relu(layer(x)) if i < self.num_layers - 1 else layer(x)
198 return x

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected