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
gaoqiong
MIGraphX
Commits
9d6159b0
Commit
9d6159b0
authored
Dec 12, 2023
by
Janjic
Browse files
fix op_shape_test in scatternd_op.hpp file
parent
9d2003a2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/include/migraphx/op/scatternd_op.hpp
src/include/migraphx/op/scatternd_op.hpp
+2
-2
No files found.
src/include/migraphx/op/scatternd_op.hpp
View file @
9d6159b0
...
...
@@ -91,8 +91,8 @@ struct scatternd_op : op_name<Derived>
auto
data_dims
=
data_shape
.
to_dynamic
().
dyn_dims
();
// Check that corresponding portions of tensor shapes match.
if
(
not
(
std
::
equal
(
ind_dims
.
begin
(),
ind_dims
.
begin
()
+
q
-
1
,
upd_dims
.
begin
())
and
std
::
equal
(
data_dims
.
begin
()
+
k
,
data_dims
.
end
(),
upd_dims
.
begin
()
+
q
-
1
)))
if
(
not
(
std
::
equal
(
ind_dims
.
begin
(),
std
::
next
(
ind_dims
.
begin
()
,
q
-
1
)
,
upd_dims
.
begin
())
and
std
::
equal
(
std
::
next
(
data_dims
.
begin
()
,
k
)
,
data_dims
.
end
(),
std
::
next
(
upd_dims
.
begin
()
,
q
-
1
)))
)
MIGRAPHX_THROW
(
"ScatterND: incorrect update shape. Update dimensions must match "
"indices and data."
);
...
...
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