def generate(self, x, **kwargs):
    """
    Generate symbolic graph for adversarial examples and return.

    :param x: The model's symbolic inputs.
    :param kwargs: See `parse_params`
    """
    # Parse and save attack-specific parameters
    assert self.parse_params(**kwargs)

    return vatm(
        self.model,
        x,
        self.model.get_logits(x),
        eps=self.eps,
        num_iterations=self.num_iterations,
        xi=self.xi,
        clip_min=self.clip_min,
        clip_max=self.clip_max)
def generate ( self , x , ** kwargs ) : assert self . parse_params ( ** kwargs ) return vatm ( self . model , x , self . model . get_logits ( x ) , eps = self . eps , num_iterations = self . num_iterations , xi = self . xi , clip_min = self . clip_min , clip_max = self . clip_max )
Generate symbolic graph for adversarial examples and return.

    :param x: The model's symbolic inputs.
    :param kwargs: See `parse_params`