Skip to content

Commit

Permalink
fix insights example (#102)
Browse files Browse the repository at this point in the history
  • Loading branch information
edward-io authored Oct 9, 2019
1 parent 85d4d69 commit 84ae9f9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions captum/insights/example.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import os

from captum.insights.api import AttributionVisualizer, Data
from captum.insights import AttributionVisualizer, Batch
from captum.insights.features import ImageFeature

import torch
Expand Down Expand Up @@ -71,7 +71,7 @@ def formatted_data_iter():
)
while True:
images, labels = next(dataloader)
yield Data(inputs=images, labels=labels)
yield Batch(inputs=images, labels=labels)


if __name__ == "__main__":
Expand Down

0 comments on commit 84ae9f9

Please sign in to comment.