Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
torch-scatter
Commits
9d4cf96d
Commit
9d4cf96d
authored
Aug 11, 2021
by
rusty1s
Browse files
fix logsumexp with out tensor
parent
778f6245
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
torch_scatter/composite/logsumexp.py
torch_scatter/composite/logsumexp.py
+1
-1
No files found.
torch_scatter/composite/logsumexp.py
View file @
9d4cf96d
...
...
@@ -32,7 +32,7 @@ def scatter_logsumexp(src: torch.Tensor, index: torch.Tensor, dim: int = -1,
recentered_score
.
masked_fill_
(
torch
.
isnan
(
recentered_score
),
float
(
'-inf'
))
if
out
is
not
None
:
out
=
out
.
sub
(
max_
per_src_element
).
exp
()
out
=
out
.
sub
_
(
max_
value_per_index
).
exp
_
()
sum_per_index
=
scatter_sum
(
recentered_score
.
exp_
(),
index
,
dim
,
out
,
dim_size
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment