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

Method reset_classifier

timm/models/xception_aligned.py:160–161  ·  view source on GitHub ↗
(self, num_classes, global_pool='avg')

Source from the content-addressed store, hash-verified

158 return self.head.fc
159
160 def reset_classifier(self, num_classes, global_pool='avg'):
161 self.head = ClassifierHead(self.num_features, num_classes, pool_type=global_pool, drop_rate=self.drop_rate)
162
163 def forward_features(self, x):
164 x = self.stem(x)

Callers

nothing calls this directly

Calls 1

ClassifierHeadClass · 0.85

Tested by

no test coverage detected