tensorflow mnist read_data_sets fails

下載處理mnist數據時出現以下錯誤spa

VisibleDeprecationWarning: converting an array with ndim > 0 to an index will result in an error in the futurecode

解決方法:input

在input_data.py文件中return numpy.frombuffer(bytestream.read(4), dtype=dt) 添加[0]it

 

return numpy.frombuffer(bytestream.read(4), dtype=dt)[0]io

相關文章
相關標籤/搜索