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
454556cd
Commit
454556cd
authored
Dec 22, 2017
by
rusty1s
Browse files
typos
parent
11a454c2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
7 deletions
+12
-7
README.md
README.md
+12
-7
No files found.
README.md
View file @
454556cd
...
...
@@ -13,13 +13,18 @@ pip install torch_scatter
```
py
from
torch_scatter
import
scatter_max
input
=
torch
.
Tensor
([[
2
,
0
,
1
,
4
,
3
],
[
0
,
2
,
1
,
3
,
4
]])
torch
.
LongTensor
([[
4
,
5
,
2
,
3
],
[
0
,
0
,
2
,
2
,
1
]])
input
=
torch
.
Tensor
([[
2
,
0
,
1
,
4
,
3
],
[
0
,
2
,
1
,
3
,
4
]])
index
=
torch
.
LongTensor
([[
4
,
5
,
4
,
2
,
3
],
[
0
,
0
,
2
,
2
,
1
]])
max
,
arg
=
scatter_max_
(
index
,
input
,
dim
=
1
)
```
max
,
argmax
=
scatter_max_
(
index
,
input
,
dim
=
1
)
## Features
print
(
max
)
0
0
4
3
2
0
2
4
3
0
0
0
[
torch
.
FloatTensor
of
size
2
x6
]
*
CPU and Cuda implementation
*
Backward implementation
print
(
argmax
)
-
1
-
1
3
4
0
1
1
4
3
-
1
-
1
-
1
[
torch
.
LongTensor
of
size
2
x6
]
```
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