相关文章推荐
逆袭的蘑菇  ·  kotlin 泛型 数组-掘金·  2 年前    · 
发财的黄花菜  ·  2020-04-22 - EmilMa - 简书·  3 年前    · 
礼貌的课本  ·  Kotlin + SpringBoot + ...·  3 年前    · 

在VarScope中设置reuse=True或reuse=tf.AUTO_REUSE是什么意思?

1 人关注

各位,我正在尝试这个

loss = tf.reduce_mean(tf.square(outputs - y)) # MSE
optimizer = tf.train.AdamOptimizer(learning_rate=learning_rate)
train = optimizer.minimize(loss)

但我得到一个错误

Variable rnn/output_projection_wrapper/basic_lstm_cell/kernel/Adam/ already exists, disallowed. Did you mean to set reuse=True or reuse=tf.AUTO_REUSE in VarScope?