美文网首页
Tensorflow "TypeError: Fetch arg

Tensorflow "TypeError: Fetch arg

作者: Nevrast | 来源:发表于2019-06-10 13:46 被阅读0次

    Tensorflow Session.run过程中的报错,run的函数参数为:

    run(self, fetches, feed_dict=None, options=None, run_metadata=None)
    

    tensorflow在Session.run过程中会通过for_fetch(fetch)staticmethod来检查fetch的值,如果遇到fetch is None就会抛出这个错误。
    遇到这个错误,需要去检查Session.runfetch(可以是list, dict, tensor_name)是否有None值;或者是训练过程中是否可能变成None值。

    相关文章

      网友评论

          本文标题:Tensorflow "TypeError: Fetch arg

          本文链接:https://www.haomeiwen.com/subject/vrhzxctx.html