MCPcopy Create free account
hub / github.com/TPCD/DCCL / forward

Method forward

model/vision_transformer.py:666–672  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

664 self.classifier.apply(weights_init_classifier)
665
666 def forward(self, x):
667 feature = self.bn(x)
668 if not self.training:
669 return feature
670 else:
671 cls_score = self.classifier(feature)
672 return cls_score
673
674class Attribute_Classifier5(nn.Module):
675 def __init__(self, dict_attribute, in_dim, projected_dim, norm_type='bn', use_independent_projection=True):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected