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-cluster
Commits
5b994648
"vscode:/vscode.git/clone" did not exist on "d8ca6317a331442194c4d99186ff16d6e7a49224"
Commit
5b994648
authored
Mar 01, 2018
by
rusty1s
Browse files
fix
parent
acbadd10
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
5 deletions
+2
-5
test/dense_grid.json
test/dense_grid.json
+2
-2
torch_cluster/functions/grid.py
torch_cluster/functions/grid.py
+0
-3
No files found.
test/dense_grid.json
View file @
5b994648
...
@@ -43,8 +43,8 @@
...
@@ -43,8 +43,8 @@
"position"
:
[[
0
,
0
],
[
11
,
9
],
[
2
,
8
],
[
2
,
2
],
[
8
,
3
],
[
1
,
1
],
[
6
,
6
]],
"position"
:
[[
0
,
0
],
[
11
,
9
],
[
2
,
8
],
[
2
,
2
],
[
8
,
3
],
[
1
,
1
],
[
6
,
6
]],
"size"
:
[
5
,
5
],
"size"
:
[
5
,
5
],
"batch"
:
[
0
,
0
,
0
,
0
,
0
,
1
,
1
],
"batch"
:
[
0
,
0
,
0
,
0
,
0
,
1
,
1
],
"start"
:
[
0
],
"start"
:
[
0
,
0
],
"end"
:
[
20
],
"end"
:
[
20
,
20
],
"expected"
:
[
0
,
9
,
1
,
0
,
4
,
16
,
21
],
"expected"
:
[
0
,
9
,
1
,
0
,
4
,
16
,
21
],
"expected_C"
:
32
"expected_C"
:
32
}
}
...
...
torch_cluster/functions/grid.py
View file @
5b994648
...
@@ -51,9 +51,6 @@ def _fixed_cluster_size(position, size, batch=None, end=None):
...
@@ -51,9 +51,6 @@ def _fixed_cluster_size(position, size, batch=None, end=None):
if
end
is
None
:
if
end
is
None
:
return
_minimal_cluster_size
(
position
,
size
)
return
_minimal_cluster_size
(
position
,
size
)
assert
end
.
numel
()
==
size
.
numel
(),
(
'End tensor must have same size as size tensor'
)
end
=
end
.
type_as
(
size
)
end
=
end
.
type_as
(
size
)
eps
=
0.000001
# Simulate [start, end) interval.
eps
=
0.000001
# Simulate [start, end) interval.
if
batch
is
None
:
if
batch
is
None
:
...
...
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