Tensorflow Session.run過(guò)程中的報(bào)錯(cuò),run的函數(shù)參數(shù)為:
run(self, fetches, feed_dict=None, options=None, run_metadata=None)
tensorflow在Session.run過(guò)程中會(huì)通過(guò)for_fetch(fetch)staticmethod來(lái)檢查fetch的值,如果遇到fetch is None就會(huì)拋出這個(gè)錯(cuò)誤。
遇到這個(gè)錯(cuò)誤,需要去檢查Session.run的fetch(可以是list, dict, tensor_name)是否有None值;或者是訓(xùn)練過(guò)程中是否可能變成None值。