我正在使用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