def forward(self, x, c):
    assert (x.size(0) == c.size(0))
    assert (c.size(1) == self.c_dim)
    if (len(c.size()) == 2):
        c = c.unsqueeze(2)
    gamma = self.conv_gamma(c)
    beta = self.conv_beta(c)
    net = self.bn(x)
    out = ((gamma * net) + beta)
    return out
def forward(self, x, c):
    assert (x.size(0) == c.size(0))
    assert (c.size(1) == self.c_dim)
    if (len(c.size()) == 2):
        c = c.unsqueeze(2)
    gamma = self.conv_gamma(c)
    beta = self.conv_beta(c)
    net = self.bn(x)
    out = ((gamma * net) + beta)
    return out