Skip to content

Commit 2f82f65

Browse files
craymichaelfacebook-github-bot
authored andcommitted
Fix kwargs annotation in feature_ablation.py
Summary: Fix incorrect **kwargs annotation Differential Revision: D65001879
1 parent 2df9798 commit 2f82f65

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

captum/attr/_core/feature_ablation.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# pyre-strict
44

55
import math
6-
from typing import Any, Callable, cast, Dict, Generator, List, Optional, Tuple, Union
6+
from typing import Any, Callable, cast, Generator, List, Optional, Tuple, Union
77

88
import torch
99
from captum._utils.common import (
@@ -573,7 +573,7 @@ def _attribute_progress_setup(
573573
formatted_inputs: Tuple[Tensor, ...],
574574
feature_mask: Tuple[Tensor, ...],
575575
perturbations_per_eval: int,
576-
**kwargs: Dict[str, Any],
576+
**kwargs: Any,
577577
):
578578
feature_counts = self._get_feature_counts(
579579
formatted_inputs, feature_mask, **kwargs

0 commit comments

Comments
 (0)