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

Method reset_classifier

timm/models/efficientnet.py:473–476  ·  view source on GitHub ↗
(self, num_classes, global_pool='avg')

Source from the content-addressed store, hash-verified

471 return self.classifier
472
473 def reset_classifier(self, num_classes, global_pool='avg'):
474 self.num_classes = num_classes
475 self.global_pool, self.classifier = create_classifier(
476 self.num_features, self.num_classes, pool_type=global_pool)
477
478 def forward_features(self, x):
479 x = self.conv_stem(x)

Callers

nothing calls this directly

Calls 1

create_classifierFunction · 0.85

Tested by

no test coverage detected