We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 85d4d69 commit 84ae9f9Copy full SHA for 84ae9f9
captum/insights/example.py
@@ -1,6 +1,6 @@
1
import os
2
3
-from captum.insights.api import AttributionVisualizer, Data
+from captum.insights import AttributionVisualizer, Batch
4
from captum.insights.features import ImageFeature
5
6
import torch
@@ -71,7 +71,7 @@ def formatted_data_iter():
71
)
72
while True:
73
images, labels = next(dataloader)
74
- yield Data(inputs=images, labels=labels)
+ yield Batch(inputs=images, labels=labels)
75
76
77
if __name__ == "__main__":
0 commit comments