Closed jumelet closed 3 years ago
Great catch, I'll fix that ASAP! The torch model was exclusively getting run for scalar output models for the experiments in our paper, so that's how i must have missed that. Thanks!
Great catch, I'll fix that ASAP! The torch model was exclusively getting run for scalar output models for the experiments in our paper, so that's how i must have missed that. Thanks!
Hi! I'm trying to run your interaction setup on a torch model (from Huggingface's library), but I run into trouble because the output_indices doesn't seem to be passed through to the attributions method.
This causes an error in
_get_grad
, whenoutput_indices
is trying to be unsqueezed, but because it's not passed it is still set toNone
:
Hi, do you how to solve this issue? I ran into the same error.
Hi! I'm trying to run your interaction setup on a torch model (from Huggingface's library), but I run into trouble because the output_indices doesn't seem to be passed through to the attributions method.
https://github.com/suinleelab/path_explain/blob/673ee950dd770925b51b299c7276fc2c2ed8febd/path_explain/explainers/path_explainer_torch.py#L245-L246
This causes an error in
_get_grad
, whenoutput_indices
is trying to be unsqueezed, but because it's not passed it is still set toNone
: https://github.com/suinleelab/path_explain/blob/673ee950dd770925b51b299c7276fc2c2ed8febd/path_explain/explainers/path_explainer_torch.py#L129-L131