MCPcopy Create free account
hub / github.com/WeChatCV/WeVisionOne / forward

Method forward

WeVisionOne/utils/utils.py:20–23  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

18 self.layers = nn.ModuleList(nn.Linear(n, k) for n, k in zip([input_dim] + h, h + [output_dim]))
19
20 def forward(self, x):
21 for i, layer in enumerate(self.layers):
22 x = F.relu(layer(x)) if i < self.num_layers - 1 else layer(x)
23 return x
24
25
26def inverse_sigmoid(x, eps=1e-5):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected