jupyter:Tensorflow反向传播bug
出现use close Session问题是因为:
1:最外侧的sess和with对齐,没有缩进,系统默认关闭最外侧的with tf.Session函数,造成下段代码使用sess.run()时出现Session关闭,sess找不到相应的函数从而报错的情况。
2:把sess.run和with tf.Session写在jupyter不同的的两行里也会造成上述报错。
jupyter:Tensorflow反向传播bug
出现use close Session问题是因为:
1:最外侧的sess和with对齐,没有缩进,系统默认关闭最外侧的with tf.Session函数,造成下段代码使用sess.run()时出现Session关闭,sess找不到相应的函数从而报错的情况。
2:把sess.run和with tf.Session写在jupyter不同的的两行里也会造成上述报错。