# Stack Overflow [machine-learning]: PyTorch/Captum: RuntimeError: gather(): Expected dtype int32/int64 for index — retained record

> Retained stackexchange record from stackexchange.

Canonical: https://highsignal.app/data/records/32cccb74c5330bb7

[← sources](https://highsignal.app/data)


source: [stackexchange](https://highsignal.app/data/stackexchange) published 2026-07-16 18:57 ingested 2026-07-17 08:01

[original source ↗](https://stackoverflow.com/questions/79981390/pytorch-captum-runtimeerror-gather-expected-dtype-int32-int64-for-index)

## retained text



```
Score: 1 | Answers: 0 | Views: 47
Tags: python, machine-learning, pytorch
PyTorch/Captum: RuntimeError: gather(): Expected dtype int32/int64 for index
```



document fetched 2026-08-15 06:28
