tensorflow 1.x ‘NoneType‘ object has no attribute ‘run‘
使用tf.get_default_session().run(self.train_op,..., )时候返回:‘NoneType‘ object has no attribute ‘run‘的错误,这是因为使用了sess = tf.Session(config=config)应该使用:sess = tf.InteractiveSession(config=config)因为:Unliketf.InteractiveSession, atf.Sessionbecome...
原创
2021-06-07 21:39:34 ·
1328 阅读 ·
0 评论