Skip to content

Commit 84ae9f9

Browse files
authored
fix insights example (#102)
1 parent 85d4d69 commit 84ae9f9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

captum/insights/example.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import os
22

3-
from captum.insights.api import AttributionVisualizer, Data
3+
from captum.insights import AttributionVisualizer, Batch
44
from captum.insights.features import ImageFeature
55

66
import torch
@@ -71,7 +71,7 @@ def formatted_data_iter():
7171
)
7272
while True:
7373
images, labels = next(dataloader)
74-
yield Data(inputs=images, labels=labels)
74+
yield Batch(inputs=images, labels=labels)
7575

7676

7777
if __name__ == "__main__":

0 commit comments

Comments
 (0)