下載處理mnist數據時出現如下錯誤
VisibleDeprecationWarning: converting an array with ndim > 0 to an index will result in an error in the future
解決方法:
在input_data.py文件中return numpy.frombuffer(bytestream.read(4), dtype=dt) 后
添加[0]
?
return numpy.frombuffer(bytestream.read(4), dtype=dt)[0]