9b0aaee6d1e357f0293e3389ac2adc5a4ad674ff,cleverhans/attacks_tf.py,CarliniWagnerL2,attack_batch,#CarliniWagnerL2#Any#Any#,579

Before Change


        // placeholders for the best l2, score, and image attack found so far
        o_bestl2 = [1e10]*batch_size
        o_bestscore = [-1]*batch_size
        o_bestattack = [np.zeros(imgs[0].shape)+self.clip_min]*batch_size

        for outer_step in range(self.BINARY_SEARCH_STEPS):
            // completely reset adam"s internal state.
            self.sess.run(self.init)

After Change


        // placeholders for the best l2, score, and image attack found so far
        o_bestl2 = [1e10]*batch_size
        o_bestscore = [-1]*batch_size
        o_bestattack = np.copy(oimgs)

        for outer_step in range(self.BINARY_SEARCH_STEPS):
            // completely reset adam"s internal state.
            self.sess.run(self.init)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: tensorflow/cleverhans
Commit Name: 9b0aaee6d1e357f0293e3389ac2adc5a4ad674ff
Time: 2017-08-03
Author: nicholas@carlini.com
File Name: cleverhans/attacks_tf.py
Class Name: CarliniWagnerL2
Method Name: attack_batch


Project Name: pymc-devs/pymc3
Commit Name: 7d8c14a3b812fbd652dedb63c25c67df77661e01
Time: 2016-02-16
Author: thomas.wiecki@gmail.com
File Name: pymc3/step_methods/metropolis.py
Class Name: BinaryMetropolis
Method Name: astep


Project Name: ilastik/ilastik
Commit Name: c032ae3c65063b1abc9fe50dfa520c7bcfc2deb6
Time: 2016-01-13
Author: bergs@janelia.hhmi.org
File Name: tests/test_applets/featureSelection/testFeatureSelectionSerializer.py
Class Name: TestFeatureSelectionSerializer
Method Name: test