class_docstr: The Jacobian-based Saliency Map Method (Papernot et al. 2016).
  Paper link: https://arxiv.org/pdf/1511.07528.pdf
  
  :param model: cleverhans.model.Model
  :param sess: optional tf.Session
  :param dtypestr: dtype of the data
  :param kwargs: passed through to super constructor
  
  :note: When not using symbolic implementation in `generate`, `sess` should
         be provided
class_docstr_tok: ["The","Jacobian-based","Saliency","Map","Method","(","Papernot","et","al",".","2016",")",".","Paper","link",":","https",":","\/\/arxiv.org\/pdf\/1511.07528.pdf",":","param","model",":","cleverhans.model.Model",":","param","sess",":","optional","tf.Session",":","param","dtypestr",":","dtype","of","the","data",":","param","kwargs",":","passed","through","to","super","constructor",":","note",":","When","not","using","symbolic","implementation","in","`","generate","`",",","`","sess","`","should","be","provided"]
docstr: Take in a dictionary of parameters and applies attack-specific checks
  before saving them as attributes.
  
  Attack-specific parameters:
  
  :param theta: (optional float) Perturbation introduced to modified
                components (can be positive or negative)
  :param gamma: (optional float) Maximum percentage of perturbed features
  :param clip_min: (optional float) Minimum component value for clipping
  :param clip_max: (optional float) Maximum component value for clipping
  :param y_target: (optional) Target tensor if the attack is targeted
docstr_tok: ["Take","in","a","dictionary","of","parameters","and","applies","attack-specific","checks","before","saving","them","as","attributes",".","Attack-specific","parameters",":",":","param","theta",":","(","optional","float",")","Perturbation","introduced","to","modified","components","(","can","be","positive","or","negative",")",":","param","gamma",":","(","optional","float",")","Maximum","percentage","of","perturbed","features",":","param","clip_min",":","(","optional","float",")","Minimum","component","value","for","clipping",":","param","clip_max",":","(","optional","float",")","Maximum","component","value","for","clipping",":","param","y_target",":","(","optional",")","Target","tensor","if","the","attack","is","targeted"]
code: def parse_params(
      self,
      theta=1.0,
      gamma=1.0,
      clip_min=0.0,
      clip_max=1.0,
      y_target=None,
      symbolic_impl=True,
      **kwargs,
  ):
      """
      Take in a dictionary of parameters and applies attack-specific checks
      before saving them as attributes.
  
      Attack-specific parameters:
  
      :param theta: (optional float) Perturbation introduced to modified
                    components (can be positive or negative)
      :param gamma: (optional float) Maximum percentage of perturbed features
      :param clip_min: (optional float) Minimum component value for clipping
      :param clip_max: (optional float) Maximum component value for clipping
      :param y_target: (optional) Target tensor if the attack is targeted
      """
      self.theta = theta
      self.gamma = gamma
      self.clip_min = clip_min
      self.clip_max = clip_max
      self.y_target = y_target
      self.symbolic_impl = symbolic_impl
  
      if len(kwargs.keys()) > 0:
          warnings.warn(
              "kwargs is unused and will be removed on or after "
              "2019-04-26."
          )
  
      return True
  
file_path: cleverhans/cleverhans_v3.1.0/cleverhans/attacks/saliency_map_method.py
imports: import warnings
  import numpy
  from six.moves import xrange
  import tensorflow
  from cleverhans.attacks.attack import Attack
  from cleverhans.compat import reduce_sum, reduce_max, reduce_any
label_desc: Use image node_id 3 for calling the SaliencyMapMethod obj's underlying member method code with example usage: obj.parse_params(theta, gamma, clip_min, clip_max, y_target, symbolic_impl) and returns: True