import pickle


def cnn_load(modelpath):
    """
    Load the saved model

    Input
    =====
    modelpath: str
        Path to load the saved model

    Output
    ======
    model: dict
        The dictonary that saved the network and functions.
    """
    # Init
    fp = open(modelpath, 'rb')

    # load
    model = pickle.load(fp)

    # close
    fp.close()

    return model