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

Method forward

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

Source from the content-addressed store, hash-verified

26 )
27
28 def forward(self, x):
29 out = F.relu(self.bn1(self.conv1(x)))
30 out = self.bn2(self.conv2(out))
31 out += self.shortcut(x)
32 out = F.relu(out)
33 return out
34
35
36class Bottleneck(nn.Module):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected