TypeError

错误:

---------------------------------------------------------------------------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'

TypeError_第1张图片

解决:

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

TypeError_第2张图片

你可能感兴趣的:(TypeError)