(self, class_num, channel, size=4)
| 179 | |
| 180 | class 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 |