MCPcopy Create free account
hub / github.com/XLearning-SCU/2022-CVPR-DART / forward

Method forward

resnet.py:136–147  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

134 return nn.Sequential(*layers)
135
136 def forward(self, x):
137 x = self.conv1(x)
138 x = self.bn1(x)
139 x = self.relu(x)
140 x = self.maxpool(x)
141
142 x = self.layer1(x)
143 x = self.layer2(x)
144 x = self.layer3(x)
145 x = self.layer4(x)
146
147 return x
148
149
150def remove_fc(state_dict):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected