keras———H5-ERROR

tensorflow的keras报错

    original_keras_version = f.attrs['keras_version'].decode('utf8')
AttributeError: 'str' object has no attribute 'decode'


    raise convert_to_error(kind, result)
KeyError: 'r'

解决方法:借鉴一位先生的博客

pip3 install h5py==2.10 -i https://pypi.tuna.tsinghua.edu.cn/simple/

你可能感兴趣的:(tensorflow)