tensorflow mnist read_data_sets fails
生活随笔
收集整理的這篇文章主要介紹了
tensorflow mnist read_data_sets fails
小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
下載處理mnist數(shù)據(jù)時(shí)出現(xiàn)如下錯(cuò)誤
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]
轉(zhuǎn)載于:https://www.cnblogs.com/xiaochaoyxc/p/6226726.html
總結(jié)
以上是生活随笔為你收集整理的tensorflow mnist read_data_sets fails的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Python之路【第八篇】:堡垒机实例以
- 下一篇: my-innodb-heavy-4g.c