339e8d4d932305de2beff2bd9acd6742b1846ffa,tensorflowTUT/tf21_autoencoder/for_practicing.py,,,#,61

Before Change


optimizer = tf.train.AdamOptimizer(learning_rate).minimize(cost)

// Initializing the variables
init = tf.initialize_all_variables()

// Launch the graph
with tf.Session() as sess:
    sess.run(init)
    total_batch = int(mnist.train.num_examples/batch_size)
    // Training cycle
    for epoch in range(training_epochs):

After Change


with tf.Session() as sess:
    // tf.initialize_all_variables() no long valid from
    // 2017-03-02 if using tensorflow >= 0.12
    sess.run(tf.global_variables_initializer())
    total_batch = int(mnist.train.num_examples/batch_size)
    // Training cycle
    for epoch in range(training_epochs):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 7

Non-data size: 5

Instances


Project Name: MorvanZhou/tutorials
Commit Name: 339e8d4d932305de2beff2bd9acd6742b1846ffa
Time: 2016-11-29
Author: morvanzhou@hotmail.com
File Name: tensorflowTUT/tf21_autoencoder/for_practicing.py
Class Name:
Method Name:


Project Name: MorvanZhou/tutorials
Commit Name: 339e8d4d932305de2beff2bd9acd6742b1846ffa
Time: 2016-11-29
Author: morvanzhou@hotmail.com
File Name: tensorflowTUT/tf12_plot_result/full_code.py
Class Name:
Method Name:


Project Name: MorvanZhou/tutorials
Commit Name: 339e8d4d932305de2beff2bd9acd6742b1846ffa
Time: 2016-11-29
Author: morvanzhou@hotmail.com
File Name: tensorflowTUT/tf11_build_network/full_code.py
Class Name:
Method Name:


Project Name: MorvanZhou/tutorials
Commit Name: 339e8d4d932305de2beff2bd9acd6742b1846ffa
Time: 2016-11-29
Author: morvanzhou@hotmail.com
File Name: tensorflowTUT/tf12_plot_result/for_you_to_practice.py
Class Name:
Method Name:


Project Name: MorvanZhou/tutorials
Commit Name: 339e8d4d932305de2beff2bd9acd6742b1846ffa
Time: 2016-11-29
Author: morvanzhou@hotmail.com
File Name: tensorflowTUT/tf21_autoencoder/full_code.py
Class Name:
Method Name:


Project Name: MorvanZhou/tutorials
Commit Name: 339e8d4d932305de2beff2bd9acd6742b1846ffa
Time: 2016-11-29
Author: morvanzhou@hotmail.com
File Name: tensorflowTUT/tf20_RNN2/full_code.py
Class Name:
Method Name:


Project Name: MorvanZhou/tutorials
Commit Name: 339e8d4d932305de2beff2bd9acd6742b1846ffa
Time: 2016-11-29
Author: morvanzhou@hotmail.com
File Name: tensorflowTUT/tf20_RNN2/for_you_to_practice.py
Class Name:
Method Name: