【报错描述】ValueError: Variable lsi/bias_global does not exist, or was not created with tf.get_variable(). Did you mean to set reuse=tf.AUTO_REUSE in VarScope?
【原因分析】
【解决办法】
# 改前
with tf.variable_scope('lsi', reuse=true)
# 改后
with tf.variable_scope('lsi', reuse=tf.AUTO_REUSE)
本文介绍了解决TensorFlow中变量作用域复用时出现的ValueError问题的方法。通过将变量作用域中的'reuse'参数设置为'tf.AUTO_REUSE',可以避免因未正确创建或重用变量而引发的错误。
2074

被折叠的 条评论
为什么被折叠?



