def conv_weights_converter(conv_weights):
    """Convert torch convolutional weights for the numpy model."""
    weights = []
    conv_weights = conv_weights.permute(1, 0, 2, 3)
    conv_weights = conv_weights.reshape(-1, *conv_weights.size()[2:])
    for conv_weight in conv_weights:
        weights.append(conv_weight.numpy())
    return weights