def layer_kind(name):
    """Return a short string indicating the kind of the named layer.
    """
    if name.startswith('CONV'):
        return 'conv'
    elif name.startswith('FC'):
        return 'fc'
    assert False