3b15c8b78b15ff0aafb15240c7d160570b532efb,tutorials/mnist_tutorial_cw.py,,mnist_tutorial_cw,#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#,25

Before Change



    idxs = [np.where(np.argmax(Y_test,axis=1)==i)[0][0] for i in range(10)]
    adv_inputs = np.array([[x]*10 for x in X_test[idxs]], dtype=np.float32).reshape((100,28,28,1))
    adv_ys = np.array([onehot(range(10),10) for x in range(10)], dtype=np.float32).reshape((100,10))

    adv = sess.run(cw.generate(tf.constant(adv_inputs), tf.constant(adv_ys), **cw_params))

After Change



    // Check if we are using a GPU, and generate higher quality attacks if we are
    try:
        with tf.device("/gpu:0"):
            sess.run(tf.constant(1))
        gpu = True
    except:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: tensorflow/cleverhans
Commit Name: 3b15c8b78b15ff0aafb15240c7d160570b532efb
Time: 2017-08-03
Author: nicholas@carlini.com
File Name: tutorials/mnist_tutorial_cw.py
Class Name:
Method Name: mnist_tutorial_cw


Project Name: wenwei202/iss-rnns
Commit Name: b77f127b891d3c68faa013f3616137868188087d
Time: 2016-10-07
Author: seominjoon@gmail.com
File Name: basic/trainer.py
Class Name: MultiGPUTrainer
Method Name: __init__


Project Name: kevinzakka/recurrent-visual-attention
Commit Name: a38ac8958ebf1c61a10c4d5320f1e31d3d0b73dd
Time: 2020-05-23
Author: kevinarmandzakka@gmail.com
File Name: trainer.py
Class Name: Trainer
Method Name: __init__