MCPcopy Create free account
hub / github.com/csxmli2016/MARCONetPlusPlus / __init__

Method __init__

networks/prior_arch.py:181–184  ·  view source on GitHub ↗
(self, class_num, channel, size=4)

Source from the content-addressed store, hash-verified

179
180class SelectText(nn.Module):
181 def __init__(self, class_num, channel, size=4):
182 super().__init__()
183 self.size = size
184 self.TextEmbeddings = nn.Parameter(torch.randn(class_num, channel, 1, 1))
185 def forward(self, labels):
186 b, c = labels.size()
187

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected