MCPcopy Create free account
hub / github.com/QWTforGithub/T2LDM / reset_classifier

Method reset_classifier

timm/models/xception.py:178–180  ·  view source on GitHub ↗
(self, num_classes, global_pool='avg')

Source from the content-addressed store, hash-verified

176 return self.fc
177
178 def reset_classifier(self, num_classes, global_pool='avg'):
179 self.num_classes = num_classes
180 self.global_pool, self.fc = create_classifier(self.num_features, self.num_classes, pool_type=global_pool)
181
182 def forward_features(self, x):
183 x = self.conv1(x)

Callers

nothing calls this directly

Calls 1

create_classifierFunction · 0.85

Tested by

no test coverage detected