def _clean_name(net, name):
    """ Clear prefix and some suffixes for name """
    # prefix = net._prefix
    # name = name.replace(prefix, "")
    if name.endswith("_fwd_output"):
        name = name[:-len("_fwd_output")]
    elif name.endswith("_fwd"):
        name = name[:-len("_fwd")]
    elif name.endswith("_output"):
        name = name[:-len("_output")]

    return name