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
bd96bf75
Commit
bd96bf75
authored
Apr 23, 2020
by
rusty1s
Browse files
clean up [skip ci]
parent
8e0a7b60
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
10 deletions
+2
-10
script/conda.sh
script/conda.sh
+0
-6
torch_scatter/scatter.py
torch_scatter/scatter.py
+2
-4
No files found.
script/conda.sh
View file @
bd96bf75
...
...
@@ -24,9 +24,3 @@ fi
conda update
--yes
conda
conda create
--yes
-n
test
python
=
"
${
PYTHON_VERSION
}
"
gcc
--version
if
[
"
${
TRAVIS_OS_NAME
}
"
=
"linux"
]
;
then
conda
install
gcc_linux-64
--yes
fi
torch_scatter/scatter.py
View file @
bd96bf75
...
...
@@ -50,11 +50,9 @@ def scatter_mean(src: torch.Tensor, index: torch.Tensor, dim: int = -1,
count
.
clamp_
(
1
)
count
=
broadcast
(
count
,
out
,
dim
)
if
torch
.
is_floating_point
(
out
):
out
.
div_
(
count
)
# out.true_divide_(count)
out
.
true_divide_
(
count
)
else
:
out
.
div_
(
count
)
# out.floor_divide_(count)
out
.
floor_divide_
(
count
)
return
out
...
...
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