Skip to content

Commit 4338362

Browse files
igorsugakfacebook-github-bot
authored andcommitted
Upgrade fbcode/pytorch to Python Scientific Stack 2 (#1387)
Summary: Pull Request resolved: #1387 Differential Revision: D64008689
1 parent b1e2fc8 commit 4338362

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: captum/attr/_utils/visualization.py

+1
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ def _cumulative_sum_threshold(
7575
sorted_vals = np.sort(values.flatten())
7676
cum_sums = np.cumsum(sorted_vals)
7777
threshold_id = np.where(cum_sums >= cum_sums[-1] * 0.01 * percentile)[0][0]
78+
# pyre-fixme[7]: Expected `float` but got `ndarray[typing.Any, dtype[typing.Any]]`.
7879
return sorted_vals[threshold_id]
7980

8081

0 commit comments

Comments
 (0)