def count_params(layer, **tags):
    params = get_all_params(layer, **tags)
    shapes = [p.get_value().shape for p in params]
    counts = [np.prod(shape) for shape in shapes]
    return sum(counts)
Export all domains.
dataset/ETHPy150Open Lasagne/Lasagne/lasagne/layers/helper.py/count_params--crossover with--dataset/ETHPy150Open tonioo/modoboa/modoboa/admin/management/commands/subcommands/_export.py/ExportCommand.export_domains