MCPcopy Create free account
hub / github.com/CausalLearning/robust-unlearnable-examples / forward

Method forward

models/resnet.py:56–62  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

54 )
55
56 def forward(self, x):
57 out = F.relu(self.bn1(self.conv1(x)))
58 out = F.relu(self.bn2(self.conv2(out)))
59 out = self.bn3(self.conv3(out))
60 out += self.shortcut(x)
61 out = F.relu(out)
62 return out
63
64
65class ResNet(nn.Module):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected