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
17a6cdcf
Commit
17a6cdcf
authored
Jan 22, 2019
by
Shucai Xiao
Browse files
change the reshape implementation.
parent
9124bec7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
src/include/migraphx/operators.hpp
src/include/migraphx/operators.hpp
+5
-5
No files found.
src/include/migraphx/operators.hpp
View file @
17a6cdcf
...
...
@@ -598,11 +598,11 @@ struct reshape
rdims
[
i
]
=
missing_dim
;
}
}
if
(
dims
.
back
()
==
-
1
)
{
rdims
.
pop_back
();
std
::
copy
(
idims
.
begin
()
+
rdims
.
size
(),
idims
.
end
(),
std
::
back_inserter
(
rdims
));
}
//
if(dims.back() == -1)
//
{
//
rdims.pop_back();
//
std::copy(idims.begin() + rdims.size(), idims.end(), std::back_inserter(rdims));
//
}
shape
s
{
inputs
.
front
().
type
(),
rdims
};
if
(
s
.
elements
()
!=
inputs
.
front
().
elements
())
MIGRAPHX_THROW
(
"Wrong number of elements for reshape"
);
...
...
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