376058931d26b5351e9aed2dcf9dd2932b0cadab,foolbox/ext/native/attacks/basic_iterative_method.py,L2BasicIterativeAttack,__call__,#L2BasicIterativeAttack#,40
Before Change
self.steps = steps
def __call__(self, model: Model, inputs, labels):
inputs, labels, restore = wrap(inputs, labels)
def loss_fn(inputs):
logits = model.forward(inputs)
After Change
) -> T:
x0, restore_type = ep.astensor_(inputs)
criterion_ = get_criterion(criterion)
del inputs, criterion
if not isinstance(criterion_, Misclassification):
raise ValueError("unsupported criterion")
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: bethgelab/foolbox
Commit Name: 376058931d26b5351e9aed2dcf9dd2932b0cadab
Time: 2020-02-07
Author: git@jonasrauber.de
File Name: foolbox/ext/native/attacks/basic_iterative_method.py
Class Name: L2BasicIterativeAttack
Method Name: __call__
Project Name: mariogeiger/se3cnn
Commit Name: d9c24dfc42d3af7859d98fa237d665e18e0f5c9a
Time: 2019-10-05
Author: lapchevsky.k@gmail.com
File Name: se3cnn/util/dataset/crystals.py
Class Name: CrystalCIF
Method Name: preprocess
Project Name: lmcinnes/pynndescent
Commit Name: c1c31db36facdf8d557f4dcc69866ac86814b83f
Time: 2020-09-01
Author: leland.mcinnes@gmail.com
File Name: pynndescent/pynndescent_.py
Class Name: NNDescent
Method Name: _init_search_graph