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 740fcde commit 86cbfedCopy full SHA for 86cbfed
captum/optim/_utils/image/dataset.py
@@ -3,7 +3,6 @@
3
import torch
4
5
from captum.optim._utils.models import collect_activations
6
-from captum.optim._utils.typing import ModuleOutputMapping
7
8
9
def image_cov(tensor: torch.Tensor) -> torch.Tensor:
@@ -65,7 +64,7 @@ def capture_activation_samples(
65
64
target_names: List[str],
66
num_samples: Optional[int] = None,
67
input_device: torch.device = torch.device("cpu"),
68
-) -> ModuleOutputMapping:
+) -> Dict[str, torch.Tensor]:
69
"""
70
Create a dict of randomly sampled activations for an image dataset.
71
0 commit comments