我正在使用Windows GPU tensorflow 1.0。我想删除无用或错误的变量。如何删除已存在的tensorflow变量?
For example I run code and generate a bad model, then I copy code and just modify existed variable W1(shape=[3,3],name="W1") as W1(shape=[5,5],name="W1") and run.
However tensorflow generate W1(shape=[5,5],name="W1_1") rather than replace old W1. So in the end Tensorflow will save both wrong trained W1(name='w1') and trained w1(name='w1_1'). When I restore W1, tensorflow give me wrong trained W1(name='w1').
你能告诉我如何删除旧的变量W1并添加新的W1?
(换行符编辑功能是没用的)
以更清洁的方式重新表达。我不明白你的意思。提供一些重现问题的代码。 – fabrizioM