Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
rusty1s committed May 27, 2024
1 parent 6ff2026 commit 1f2a0ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion torch_scatter/composite/logsumexp.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def scatter_logsumexp(
recentered_score = src - max_per_src_element
recentered_score.masked_fill_(torch.isnan(recentered_score), float('-inf'))

orig_out = None
orig_out: Optional[torch.Tensor] = None
if out is not None:
orig_out = out.clone()
out = out.sub_(max_value_per_index).exp_()
Expand Down

0 comments on commit 1f2a0ab

Please sign in to comment.