class_docstr: A unittest class for testing the Carlini L2 attack.
class_docstr_tok: ["A","unittest","class","for","testing","the","Carlini","L2","attack","."]
code: def test_check_params_LInf(self):
      ptc = get_image_classifier_pt(from_logits=True)
  
      with self.assertRaises(ValueError):
          _ = CarliniLInfMethod(ptc, max_iter="1.0")
      with self.assertRaises(ValueError):
          _ = CarliniLInfMethod(ptc, max_iter=-1)
  
      with self.assertRaises(ValueError):
          _ = CarliniLInfMethod(ptc, decrease_factor="1.0")
      with self.assertRaises(ValueError):
          _ = CarliniLInfMethod(ptc, decrease_factor=-1)
  
      with self.assertRaises(ValueError):
          _ = CarliniLInfMethod(ptc, initial_const="1.0")
      with self.assertRaises(ValueError):
          _ = CarliniLInfMethod(ptc, initial_const=-1)
  
      with self.assertRaises(ValueError):
          _ = CarliniLInfMethod(ptc, largest_const="1.0")
      with self.assertRaises(ValueError):
          _ = CarliniLInfMethod(ptc, largest_const=-1)
  
      with self.assertRaises(ValueError):
          _ = CarliniLInfMethod(ptc, const_factor="1.0")
      with self.assertRaises(ValueError):
          _ = CarliniLInfMethod(ptc, const_factor=-1)
  
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  import logging
  import unittest
  import numpy
  from art.attacks.evasion.carlini import CarliniL0Method, CarliniL2Method, CarliniLInfMethod
  from art.estimators.estimator import BaseEstimator
  from art.estimators.classification.classifier import ClassGradientsMixin
  from art.utils import random_targets
  from tests.utils import TestBase, master_seed
  from tests.utils import get_image_classifier_tf
  from tests.utils import get_image_classifier_pt
  from tests.attacks.utils import backend_test_classifier_type_check_fail
label_desc: Use image node_id 10 for calling the TestCarlini obj's underlying member method code with example usage: obj.test_check_params_LInf() without return types