GradientXInput

GradientXInput(self, model, filter_idx=None, avg_func='sum', layer=None, selected_fwd_node=None, pre_nonlinearity=False)

Mask the gradient by the input value: grad * input, where input is typically a one-hot-encoded array.