MCPcopy Create free account
hub / github.com/FreeformRobotics/OTS / Classifier

Class Classifier

models/ots.py:70–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

68
69
70class Classifier(nn.Module):
71 def __init__(self, num_classes, in_dim):
72 super(Classifier, self).__init__()
73 self.fc = nn.Linear(in_dim, num_classes)
74 nn.init.normal_(self.fc.weight, std=0.01)
75
76 def forward(self, x):
77 out = self.fc(x)
78 return out

Callers 1

__init__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected