ValueError: Variable rnn/basic_rnn_cell/kernel already exists, disallowed. Did you mean to set reuse=True or reuse=tf.AUTO_REUSE in VarScope?

前端 未结 1 2083
没有蜡笔的小新
没有蜡笔的小新 2021-02-03 23:38

Any ideas how can I solve problem shown below? With the information that I found on the web it is associated with problem of reusing tensorflow scope however nothing works.

1条回答
  •  再見小時候
    2021-02-03 23:55

    Does this happen when you run the model for the first time (upon opening a new python console)?

    If not, you need to clear you computational graph. You can do that by putting this line at the beginning of your script.

    tf.reset_default_graph()
    

    0 讨论(0)
提交回复
热议问题