// 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)