python3
1model.saver.restore(sess, path) 2... 3この途中でmodelに新しい変数を追加したいのですが、どうすればそういう事が出来るでしょうか? 4... 5model.saver.save(sess, path)
modelはこのような感じです。
class Model(object): def __init__(self, config, name_scope): with tf.variable_scope(name_scope) : self.config = config self.va = tf.Variable( ...) self.vb = tf.get_variable( ...) self.saver = tf.train.Saver()
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2017/12/14 23:49