Pickle incompatibility of numpy arrays between Python 2 and 3

Traceback (most recent call last):
   File "mnist.py", line 7, in <module>
     train_set, valid_set, test_set = pickle.load(f)
UnicodeDecodeError: 'ascii' codec can't decode byte 0x90 in position 614: ordinal not in range(128)



pickle.load(file, encoding='latin1')



https://stackoverflow.com/questions/11305790/pickle-incompatibility-of-numpy-arrays-between-python-2-and-3

posted on 2018-05-21 15:37  蚂蚁flow  阅读(244)  评论(0编辑  收藏  举报

导航