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: rusty1s/pytorch_geometric
Commit Name: 04ad358395c7bd074ffb9af235ccb76d2c0dc4cc
Time: 2020-07-01
Author: matthias.fey@tu-dortmund.de
File Name: examples/pna.py
Class Name:
Method Name:


Project Name: pytorch/audio
Commit Name: 23e9ed349f41fc2ec622855f554d4acc533b5bc2
Time: 2021-02-24
Author: bhargavkathivarapu31@gmail.com
File Name: torchaudio/functional/filtering.py
Class Name:
Method Name: overdrive