def _num_conv_units(conv_layer):

    assert isinstance(conv_layer, (MaxoutConvC01B, ConvElemwise))

    weights = conv_layer.get_params()[0].get_value()

    if isinstance(conv_layer, MaxoutConvC01B):
        return weights.shape[-1]
    elif isinstance(conv_layer, ConvElemwise):
        return weights.shape[0]
Build the authorization url and save the state. Return the
dataset/ETHPy150Open lisa-lab/pylearn2/pylearn2/scripts/browse_conv_weights.py/_num_conv_units--crossover with--dataset/ETHPy150Open orcasgit/python-misfit/misfit/auth.py/MisfitAuth.authorize_url