7354ffe0d8914caf96d8ebd089c03c1a89326097,foolbox/batching.py,,run_parallel,#Any#Any#Any#Any#Any#Any#Any#Any#,94
Before Change
attacks_requesting_backwards.append(attack)
backwards_args.append(args)
elif method == "forward_and_gradient_one":
raise NotImplementedError("batching support for forward_and_"
"gradient_one not yet implemented; "
"please open an issue")
else:
assert False
n_active_attacks = len(attacks_requesting_predictions) \
+ len(attacks_requesting_gradients) \
After Change
if len(attacks_requesting_prediction_gradients) > 0:
logging.debug("calling forward_and_gradient_one with {}".format(len(attacks_requesting_prediction_gradients))) // noqa: E501
predictions_gradients_args = map(np.stack,
zip(*predictions_gradients_args))
prediction_gradients = model.forward_and_gradient(
*predictions_gradients_args)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: bethgelab/foolbox
Commit Name: 7354ffe0d8914caf96d8ebd089c03c1a89326097
Time: 2019-07-19
Author: rzrolandzimmermann@gmail.com
File Name: foolbox/batching.py
Class Name:
Method Name: run_parallel
Project Name: uber/petastorm
Commit Name: 947b1a35c7762e8805e0dc69acea414ce4ee9b1c
Time: 2020-04-20
Author: selitvin@users.noreply.github.com
File Name: petastorm/tf_utils.py
Class Name:
Method Name: make_petastorm_dataset
Project Name: DistrictDataLabs/yellowbrick
Commit Name: d364facfdecaf5874b85bca3f7f0b2832e3483a2
Time: 2018-06-18
Author: benjamin@bengfort.com
File Name: tests/test_regressor/test_residuals.py
Class Name: TestPredictionError
Method Name: test_peplot_shared_limits