pkmital / tensorflow_tutorials

From the basics to slightly more interesting applications of Tensorflow
Other
5.64k stars 1.18k forks source link

Creating variables for a new batch every time #37

Open 7wik opened 7 years ago

7wik commented 7 years ago

I feel that tf.get_variable() has to be used instead of tf.Variable(). In each epoch all the mini batches have to interact with same set of weights. But since we are using tf.Variable() for each autoencoder['cost'] calculation, we indirectly call the autoencoder function which creates a new set of weights every time we call pkmital@