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

Method __init__

models/ots.py:71–74  ·  view source on GitHub ↗
(self, num_classes, in_dim)

Source from the content-addressed store, hash-verified

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)

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected