MCPcopy Create free account
hub / github.com/alexrame/fishr / forward

Method forward

domainbed/networks.py:57–66  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

55 self.n_outputs = n_outputs
56
57 def forward(self, x):
58 x = self.input(x)
59 x = self.dropout(x)
60 x = F.relu(x)
61 for hidden in self.hiddens:
62 x = hidden(x)
63 x = self.dropout(x)
64 x = F.relu(x)
65 x = self.output(x)
66 return x
67
68
69class ResNet(torch.nn.Module):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected