tensorflow报错:Unsupported feed type
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了tensorflow报错:Unsupported feed type相关的知识,希望对你有一定的参考价值。
File "C:\anaconda\lib\site-packages\tensorflow\python\training\monitored_session.py", line 827, in run
return self._sess.run(*args, **kwargs)
File "C:\anaconda\lib\site-packages\tensorflow\python\client\session.py", line 889, in run
run_metadata_ptr)
File "C:\anaconda\lib\site-packages\tensorflow\python\client\session.py", line 1120, in _run
feed_dict_tensor, options, run_metadata)
File "C:\anaconda\lib\site-packages\tensorflow\python\client\session.py", line 1317, in _do_run
options, run_metadata)
File "C:\anaconda\lib\site-packages\tensorflow\python\client\session.py", line 1336, in _do_call
raise type(e)(node_def, op, message)
tensorflow.python.framework.errors_impl.InternalError: Unsupported feed type
使用tf.contrib.learn.DNNClassifier分类器进行分类时,报出如上异常。
解决方法是:尽量使用numpy中的默认类型,如np.int,np.float等,而不要使用np.int32,np.float32.
以上是关于tensorflow报错:Unsupported feed type的主要内容,如果未能解决你的问题,请参考以下文章
larave Elasticsearch scout Unsupported operand types报错
larave Elasticsearch scout Unsupported operand types报错
Weblogic报错:Unsupported major.minor version 52.0