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

Method feature_extract

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

Source from the content-addressed store, hash-verified

96 return out
97
98 def feature_extract(self, x):
99 out = F.relu(self.bn1(self.conv1(x)))
100 out = self.layer1(out)
101 out = self.layer2(out)
102 out = self.layer3(out)
103 out = self.layer4(out)
104 out = self.avgpool(out)
105 out = torch.flatten(out, 1)
106 return out
107
108
109class WRN(nn.Module):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected