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

Method reset_classifier

timm/models/hrnet.py:686–689  ·  view source on GitHub ↗
(self, num_classes, global_pool='avg')

Source from the content-addressed store, hash-verified

684 return self.classifier
685
686 def reset_classifier(self, num_classes, global_pool='avg'):
687 self.num_classes = num_classes
688 self.global_pool, self.classifier = create_classifier(
689 self.num_features, self.num_classes, pool_type=global_pool)
690
691 def stages(self, x) -> List[torch.Tensor]:
692 x = self.layer1(x)

Callers

nothing calls this directly

Calls 1

create_classifierFunction · 0.85

Tested by

no test coverage detected