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
aff91e0e
"...git@developer.sourcefind.cn:OpenDAS/megatron-lm.git" did not exist on "688448db7547be90203440cfd105703d8a853f39"
Commit
aff91e0e
authored
Mar 23, 2020
by
rusty1s
Browse files
fix jit bug
parent
6a8502cb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
torch_cluster/radius.py
torch_cluster/radius.py
+1
-1
No files found.
torch_cluster/radius.py
View file @
aff91e0e
...
@@ -7,7 +7,7 @@ import scipy.spatial
...
@@ -7,7 +7,7 @@ import scipy.spatial
@
torch
.
jit
.
script
@
torch
.
jit
.
script
def
sample
(
col
:
torch
.
Tensor
,
count
:
int
)
->
torch
.
Tensor
:
def
sample
(
col
:
torch
.
Tensor
,
count
:
int
)
->
torch
.
Tensor
:
if
col
.
size
(
0
)
>
count
:
if
col
.
size
(
0
)
>
count
:
col
=
col
[
torch
.
randperm
(
col
.
size
(
0
))][:
count
]
col
=
col
[
torch
.
randperm
(
col
.
size
(
0
)
,
dtype
=
torch
.
long
)][:
count
]
return
col
return
col
...
...
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