一、Variable train/rnn/basic_lstm_cell/kernel already exists, disallowed. Did you mean to set reuse=True or reuse=tf.AUTO_REUSE in VarScope? Originally defined at
的问题
解决方法:
Step 1:
添加tf.reset_default_graph()
Step 2:
with tf.variable_scope(‘train’):
train_lstm()
with tf.variable_scope(‘train’,reuse=True):
prediction()