def g2c(tensor):
    """
    Reshape from groups, channels to groups*channels
    """
    if len(tensor.shape) == 5:
        b, c, g, h, w = tensor.shape
        tensor = tensor.reshape(b, c*g, h, w)
    return tensor