def fetch_mnist():
    """ Returns mnist digits with pixel values in [0 - 1] """
    data_path = check_fetch_mnist()
    f = gzip.open(data_path, 'rb')
    try:
        train_set, valid_set, test_set = pickle.load(f, encoding="latin1")
    except __HOLE__:
        train_set, valid_set, test_set = pickle.load(f)
    f.close()
    return train_set, valid_set, test_set
dataset/ETHPy150Open kastnerkyle/SciPy2015/graphics_code/cvae/kdl_template.py/fetch_mnist