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
ae31f726
Commit
ae31f726
authored
Jun 12, 2020
by
rusty1s
Browse files
fix scatter_std bug
parent
3a58d6f6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
torch_scatter/composite/std.py
torch_scatter/composite/std.py
+1
-1
No files found.
torch_scatter/composite/std.py
View file @
ae31f726
...
...
@@ -26,7 +26,7 @@ def scatter_std(src: torch.Tensor, index: torch.Tensor, dim: int = -1,
index
=
broadcast
(
index
,
src
,
dim
)
tmp
=
scatter_sum
(
src
,
index
,
dim
,
dim_size
=
dim_size
)
count
=
broadcast
(
count
,
tmp
,
dim
).
clamp
_
(
1
)
count
=
broadcast
(
count
,
tmp
,
dim
).
clamp
(
1
)
mean
=
tmp
.
div
(
count
)
var
=
(
src
-
mean
.
gather
(
dim
,
index
))
...
...
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