6b9e25994574da46d8a218571fdff5d6ca22f0b0,cleverhans_tutorials/mnist_tutorial_keras_tf.py,,mnist_tutorial,#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#,22

Before Change



    // Set TF random seed to improve reproducibility
    tf.set_random_seed(1234)
    random.seed(1234)

    if not hasattr(backend, "tf"):
        raise RuntimeError("This tutorial requires keras to be configured"
                           " to use the TensorFlow backend.")

After Change


    ckpt = tf.train.get_checkpoint_state(train_dir)
    ckpt_path = False if ckpt is None else ckpt.model_checkpoint_path

    rng = np.random.RandomState([2017, 8, 30])
    if load_model and ckpt_path:
        saver = tf.train.Saver()
        saver.restore(sess, ckpt_path)
        print("Model loaded from: {}".format(ckpt_path))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 5

Instances


Project Name: tensorflow/cleverhans
Commit Name: 6b9e25994574da46d8a218571fdff5d6ca22f0b0
Time: 2017-08-30
Author: goodfellow@google.com
File Name: cleverhans_tutorials/mnist_tutorial_keras_tf.py
Class Name:
Method Name: mnist_tutorial


Project Name: tensorflow/cleverhans
Commit Name: 6b9e25994574da46d8a218571fdff5d6ca22f0b0
Time: 2017-08-30
Author: goodfellow@google.com
File Name: cleverhans_tutorials/mnist_tutorial_tf.py
Class Name:
Method Name: mnist_tutorial


Project Name: tensorflow/cleverhans
Commit Name: 6b9e25994574da46d8a218571fdff5d6ca22f0b0
Time: 2017-08-30
Author: goodfellow@google.com
File Name: cleverhans_tutorials/mnist_tutorial_cw.py
Class Name:
Method Name: mnist_tutorial_cw


Project Name: tensorflow/cleverhans
Commit Name: 6b9e25994574da46d8a218571fdff5d6ca22f0b0
Time: 2017-08-30
Author: goodfellow@google.com
File Name: cleverhans_tutorials/mnist_tutorial_jsma.py
Class Name:
Method Name: mnist_tutorial_jsma