Commit 331eb6a
fix issue of long tensor in torch gather in interpretable input (#1678)
Summary: Pull Request resolved: #1678 `torch.gather` requires `index` as `long` in the released versions of pytorch `int32` is already supported in source code (why the internal tests pass) this diff gonna fix [the CI fails](https://github.com/meta-pytorch/captum/actions/runs/19831857827/job/56826961913), which is caused by test cases using int32 `mask` Reviewed By: jimshao1999 Differential Revision: D88101395 fbshipit-source-id: fc37972c0437eff03abc5250e53a59ad7fc023171 parent dd04b82 commit 331eb6a
1 file changed
+5
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
58 | 63 | | |
59 | 64 | | |
60 | 65 | | |
| |||
0 commit comments