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
4f6fe911
Commit
4f6fe911
authored
Jan 09, 2020
by
rusty1s
Browse files
fixed string bug
parent
cebec48f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
cuda/segment_kernel.cu
cuda/segment_kernel.cu
+3
-3
No files found.
cuda/segment_kernel.cu
View file @
4f6fe911
...
@@ -195,8 +195,8 @@ segment_csr_cuda(at::Tensor src, at::Tensor indptr,
...
@@ -195,8 +195,8 @@ segment_csr_cuda(at::Tensor src, at::Tensor indptr,
for
(
int
i
=
0
;
i
<
out
.
dim
();
i
++
)
for
(
int
i
=
0
;
i
<
out
.
dim
();
i
++
)
if
(
i
!=
reduce_dim
)
if
(
i
!=
reduce_dim
)
AT_ASSERTM
(
src
.
size
(
i
)
==
out
.
size
(
i
),
"Input mismatch"
);
AT_ASSERTM
(
src
.
size
(
i
)
==
out
.
size
(
i
),
"Input mismatch"
);
AT_ASSERTM
(
out
.
size
(
reduce_dim
)
==
indptr
.
size
(
reduce_dim
)
-
1
,
"Input
AT_ASSERTM
(
out
.
size
(
reduce_dim
)
==
indptr
.
size
(
reduce_dim
)
-
1
,
mismatch"
);
"Input
mismatch"
);
}
else
{
}
else
{
auto
sizes
=
src
.
sizes
().
vec
();
auto
sizes
=
src
.
sizes
().
vec
();
sizes
[
reduce_dim
]
=
indptr
.
size
(
reduce_dim
)
-
1
;
sizes
[
reduce_dim
]
=
indptr
.
size
(
reduce_dim
)
-
1
;
...
@@ -352,7 +352,7 @@ segment_coo_cuda(at::Tensor src, at::Tensor index, at::Tensor out,
...
@@ -352,7 +352,7 @@ segment_coo_cuda(at::Tensor src, at::Tensor index, at::Tensor out,
for
(
int
i
=
0
;
i
<
out
.
dim
();
i
++
)
for
(
int
i
=
0
;
i
<
out
.
dim
();
i
++
)
if
(
i
!=
reduce_dim
)
if
(
i
!=
reduce_dim
)
AT_ASSERTM
(
src
.
size
(
i
)
==
out
.
size
(
i
),
,
"Input mismatch"
);
AT_ASSERTM
(
src
.
size
(
i
)
==
out
.
size
(
i
),
"Input mismatch"
);
at
::
optional
<
at
::
Tensor
>
arg_out
=
at
::
nullopt
;
at
::
optional
<
at
::
Tensor
>
arg_out
=
at
::
nullopt
;
int64_t
*
arg_out_data
=
nullptr
;
int64_t
*
arg_out_data
=
nullptr
;
...
...
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