MCPcopy Create free account
hub / github.com/HobbitLong/SupContrast / forward

Method forward

networks/resnet_big.py:183–186  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

181 'head not supported: {}'.format(head))
182
183 def forward(self, x):
184 feat = self.encoder(x)
185 feat = F.normalize(self.head(feat), dim=1)
186 return feat
187
188
189class SupCEResNet(nn.Module):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected