a8bc7c7d4023739aa3879495294af707f748a66e,art/attacks/carlini_unittest.py,,,#,289

Before Change


        self.assertTrue((y_pred != y_pred_adv).any())


if __name__ == "__main__":
    unittest.main()

After Change


from art.utils import load_mnist, random_targets

logging.basicConfig(format="%(levelname)s %(asctime)s %(funcName)s:%(lineno)d %(message)s")
logger = logging.getLogger(__file__)
logger.setLevel(logging.DEBUG)

class Model(nn.Module):
    def __init__(self):
        super(Model, self).__init__()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 8

Instances


Project Name: IBM/adversarial-robustness-toolbox
Commit Name: a8bc7c7d4023739aa3879495294af707f748a66e
Time: 2018-07-19
Author: molloyim@us.ibm.com
File Name: art/attacks/carlini_unittest.py
Class Name:
Method Name:


Project Name: ilastik/ilastik
Commit Name: e9284cd98927f84d6136510b2d4501b94efe9418
Time: 2013-01-23
Author: bergs@janelia.hhmi.org
File Name: tests/test_applets/pixelClassification/testPixelClassificationGui.py
Class Name:
Method Name:


Project Name: IBM/adversarial-robustness-toolbox
Commit Name: a8bc7c7d4023739aa3879495294af707f748a66e
Time: 2018-07-19
Author: molloyim@us.ibm.com
File Name: art/attacks/carlini_unittest.py
Class Name:
Method Name:


Project Name: dmlc/gluon-cv
Commit Name: b7988369f77e12525604e2613b279c13f041f484
Time: 2019-12-04
Author: wuxun.zhang@intel.com
File Name: scripts/pose/simple_pose/validate.py
Class Name:
Method Name: