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
原文地址:https://www.cnblogs.com/antflow/p/9067499.html