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

Function create_classifier

timm/models/layers/classifier.py:34–37  ·  view source on GitHub ↗
(num_features, num_classes, pool_type='avg', use_conv=False)

Source from the content-addressed store, hash-verified

32
33
34def create_classifier(num_features, num_classes, pool_type='avg', use_conv=False):
35 global_pool, num_pooled_features = _create_pool(num_features, num_classes, pool_type, use_conv=use_conv)
36 fc = _create_fc(num_pooled_features, num_classes, use_conv=use_conv)
37 return global_pool, fc
38
39
40class ClassifierHead(nn.Module):

Callers 15

__init__Method · 0.85
reset_classifierMethod · 0.85
__init__Method · 0.85
reset_classifierMethod · 0.85
__init__Method · 0.85
reset_classifierMethod · 0.85
__init__Method · 0.85
reset_classifierMethod · 0.85
__init__Method · 0.85
reset_classifierMethod · 0.85
__init__Method · 0.85
reset_classifierMethod · 0.85

Calls 2

_create_poolFunction · 0.85
_create_fcFunction · 0.85

Tested by

no test coverage detected