8325d3e0bbf7dd4ca07bde7d6cb3adde0352d37f,src/attackers/saliency_map.py,SaliencyMapMethod,generate,#SaliencyMapMethod#Any#,68

Before Change



        // Run symbolic graph without or with true labels
        if "y_val" not in kwargs or kwargs["y_val"] is None:
            feed_dict = {self._x: x_val, K.learning_phase(): 0}
        else:
            if self.y is None:
                raise Exception("This attack was instantiated untargeted.")
            else:

After Change


        
        // Parse and save attack-specific parameters
        assert self.set_params(**kwargs)
        K.set_learning_phase(0)

        input_shape = list(x_val.shape)
        input_shape[0] = None
        self._x = tf.placeholder(tf.float32, shape=input_shape)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 4

Instances


Project Name: IBM/adversarial-robustness-toolbox
Commit Name: 8325d3e0bbf7dd4ca07bde7d6cb3adde0352d37f
Time: 2017-09-01
Author: valentina.zantedeschi@ibm.com
File Name: src/attackers/saliency_map.py
Class Name: SaliencyMapMethod
Method Name: generate


Project Name: IBM/adversarial-robustness-toolbox
Commit Name: 038cbcbf391bc19100014ec44d480c5d9a937a77
Time: 2018-03-22
Author: Maria-Irina.Nicolae@ibm.com
File Name: src/attacks/fast_gradient.py
Class Name: FastGradientMethod
Method Name: minimal_perturbations


Project Name: IBM/adversarial-robustness-toolbox
Commit Name: 038cbcbf391bc19100014ec44d480c5d9a937a77
Time: 2018-03-22
Author: Maria-Irina.Nicolae@ibm.com
File Name: src/attacks/fast_gradient.py
Class Name: FastGradientMethod
Method Name: generate


Project Name: IBM/adversarial-robustness-toolbox
Commit Name: 038cbcbf391bc19100014ec44d480c5d9a937a77
Time: 2018-03-22
Author: Maria-Irina.Nicolae@ibm.com
File Name: src/attacks/deepfool.py
Class Name: DeepFool
Method Name: generate