b38efd0d693545672eb091e8f615d92c42c7058b,chainer_chemistry/saliency/calculator/occlusion_calculator.py,OcclusionCalculator,_compute_core,#OcclusionCalculator#,37
Before Change
with chainer.using_config("enable_backprop", self.enable_backprop):
original_result = self.eval_fun(*inputs)
// original_score = _extract_score(original_result)
target_var = self.target_extractor.get_variable()
original_score = self.output_extractor.get_variable()
xp = cuda.get_array_module(target_var.array)
value = 0.
After Change
occlude_index = _extract_index(self.slide_axis, self.size, start)
if self.target_extractor is None:
inputs[0].array = original_target_array.copy()
inputs[0].array[occlude_index] = occlusion_window
// inputs[0].array = inputs_tmp
occluded_result = self.eval_fun(*inputs)
else:
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 2
Instances
Project Name: pfnet-research/chainer-chemistry
Commit Name: b38efd0d693545672eb091e8f615d92c42c7058b
Time: 2018-12-09
Author: acc1ssnn9terias@gmail.com
File Name: chainer_chemistry/saliency/calculator/occlusion_calculator.py
Class Name: OcclusionCalculator
Method Name: _compute_core
Project Name: tensorlayer/tensorlayer
Commit Name: 5aab2436c4548d51b6dde2fc7867a6804d6380fd
Time: 2019-01-08
Author: jingqing.zhang15@imperial.ac.uk
File Name: tensorlayer/layers/dense/base_dense.py
Class Name: Dense
Method Name: build
Project Name: reinforceio/tensorforce
Commit Name: a4c4a4f2d33081806397784f96b113d5b3b32c9a
Time: 2018-02-08
Author: mi.schaarschmidt@gmail.com
File Name: tensorforce/core/memories/prioritized_replay.py
Class Name: PrioritizedReplay
Method Name: tf_retrieve_timesteps
Project Name: pfnet-research/chainer-chemistry
Commit Name: b38efd0d693545672eb091e8f615d92c42c7058b
Time: 2018-12-09
Author: acc1ssnn9terias@gmail.com
File Name: chainer_chemistry/saliency/calculator/integrated_gradients_calculator.py
Class Name: IntegratedGradientsCalculator
Method Name: _compute_core