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

Method get_classifier

timm/models/pit.py:210–214  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

208 return {'pos_embed', 'cls_token'}
209
210 def get_classifier(self):
211 if self.head_dist is not None:
212 return self.head, self.head_dist
213 else:
214 return self.head
215
216 def reset_classifier(self, num_classes, global_pool=''):
217 self.num_classes = num_classes

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected