MCPcopy Create free account
hub / github.com/deeplearning-wisc/MOOD / __init__

Method __init__

models/msdnet_ge.py:224–227  ·  view source on GitHub ↗
(self, m, channel, num_classes)

Source from the content-addressed store, hash-verified

222
223class ClassifierModule(nn.Module):
224 def __init__(self, m, channel, num_classes):
225 super(ClassifierModule, self).__init__()
226 self.m = m
227 self.linear = nn.Linear(channel, num_classes)
228
229 def forward(self, x):
230 res = self.m(x[-1])

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected