Closed varisd closed 5 years ago
Atrribute Method DelayedUpdateTrainer.objective_buffers is being called twice,
once in: https://github.com/ufal/neuralmonkey/blob/master/neuralmonkey/trainers/delayed_update_trainer.py#L156
and second time in: https://github.com/ufal/neuralmonkey/blob/master/neuralmonkey/trainers/delayed_update_trainer.py#L173
There is no explicit specification of the variable reuse so I assume that each class method works with a different list of graph variables. Next time, I recommend using tf.get_variable + proper naming instead of using carelessly using tf.Variable
self.objective_buffers je @tensor, takže se volá jen jednou.
self.objective_buffers
@tensor
Atrribute Method DelayedUpdateTrainer.objective_buffers is being called twice,
once in: https://github.com/ufal/neuralmonkey/blob/master/neuralmonkey/trainers/delayed_update_trainer.py#L156
and second time in: https://github.com/ufal/neuralmonkey/blob/master/neuralmonkey/trainers/delayed_update_trainer.py#L173
There is no explicit specification of the variable reuse so I assume that each class method works with a different list of graph variables. Next time, I recommend using tf.get_variable + proper naming instead of using carelessly using tf.Variable