ValueError: Variable RNN/MultiRNNCell/Cell0/BasicLSTMCell/Linear/Matrix does not exist, disallowed. Did you mean to set reuse=None in VarScope?
问题原因:Jupyter中运行多次cell时,默认在已存在的计算图上进行相同的操作
解决方法如下:
在代码上端加with tf.Graph().as_default():
例如:
with tf.Graph().as_default():
# tf Graph input
x = tf.placeholder(tf.float32, [None, n_steps, n_inputs])
y = tf.placeholder(tf.float32, [None, n_classes])