mnist.py 文件源码

python
阅读 41 收藏 0 点赞 0 评论 0

项目:Aurora 作者: upul 项目源码 文件源码
def _load_data(self):
        script_dir = os.path.dirname(__file__)
        mnist_file = os.path.join(os.path.join(script_dir, 'data'), 'mnist.pkl.gz')

        with gzip.open(mnist_file, 'rb') as mnist_file:
            u = pickle._Unpickler(mnist_file)
            u.encoding = 'latin1'
            train, val, test = u.load()
        return train, val, test
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号