673e2a86779cbb260e4557a8626b8e85ba510ede,cleverhans/attacks.py,SaliencyMapMethod,generate,#SaliencyMapMethod#Any#,477
Before Change
self.y_target = tf.py_func(random_targets, [labels], tf.float32)
self.y_target.set_shape([None, nb_classes])
return jsma_symbolic(x, model=self.model, y_target=self.y_target,
theta=self.theta, gamma=self.gamma,
clip_min=self.clip_min, clip_max=self.clip_max)
def parse_params(self, theta=1., gamma=1., nb_classes=None,
clip_min=0., clip_max=1., y_target=None, **kwargs):
After Change
y_target=None)
// Attack is untargeted, target values will be chosen at random
x_adv = tf.py_func(jsma_wrap, [x], tf.float32)
return x_adv
def parse_params(self, theta=1., gamma=1., nb_classes=None,
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances Project Name: tensorflow/cleverhans
Commit Name: 673e2a86779cbb260e4557a8626b8e85ba510ede
Time: 2017-12-13
Author: zhi.li.gz@gmail.com
File Name: cleverhans/attacks.py
Class Name: SaliencyMapMethod
Method Name: generate
Project Name: onnx/onnx-tensorflow
Commit Name: 04cd23d79845e8fef361353dd39e949214a6fc11
Time: 2019-11-11
Author: sdmonov@us.ibm.com
File Name: onnx_tf/handlers/backend/pool_mixin.py
Class Name: PoolMixin
Method Name: pool_v11
Project Name: asyml/texar
Commit Name: 0b3c7ab40b6152262eaed8c002153e3975b2e32b
Time: 2018-04-03
Author: zhitinghu@gmail.com
File Name: texar/data/tokenizers.py
Class Name: TokenizerBase
Method Name: tokenize