TypeError

2018-04-11  本文已影响0人  _sunnyRain

错误:

---------------------------------------------------------------------------TypeError Traceback (most recent call last) in () 1 sess = tf.Session#with tf.Session as sess:----> 2 sess.run(init) 3 for _ in range(3): 4 sess.run(update) 5 print(sess.run(state))TypeError: run() missing 1 required positional argument: 'fetches'

解决:

Session后面少了个()         ......


上一篇下一篇

猜你喜欢

热点阅读