Skip to content

Commit 86cbfed

Browse files
authored
Fix type hint
1 parent 740fcde commit 86cbfed

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

captum/optim/_utils/image/dataset.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
import torch
44

55
from captum.optim._utils.models import collect_activations
6-
from captum.optim._utils.typing import ModuleOutputMapping
76

87

98
def image_cov(tensor: torch.Tensor) -> torch.Tensor:
@@ -65,7 +64,7 @@ def capture_activation_samples(
6564
target_names: List[str],
6665
num_samples: Optional[int] = None,
6766
input_device: torch.device = torch.device("cpu"),
68-
) -> ModuleOutputMapping:
67+
) -> Dict[str, torch.Tensor]:
6968
"""
7069
Create a dict of randomly sampled activations for an image dataset.
7170

0 commit comments

Comments
 (0)