码迷,mamicode.com
首页 > 其他好文 > 详细

tensorflow报错:Unsupported feed type

时间:2017-11-27 21:45:02      阅读:985      评论:0      收藏:0      [点我收藏+]

标签:feed   ini   pytho   nod   sage   dnn   **kwargs   分类器   imp   

  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

标签:feed   ini   pytho   nod   sage   dnn   **kwargs   分类器   imp   

原文地址:http://www.cnblogs.com/weidiao/p/7905744.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!