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
5d612a82
Commit
5d612a82
authored
Sep 26, 2018
by
wsttiger
Browse files
Added copy_if for Paul
parent
d0c3a01d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
src/include/migraph/operators.hpp
src/include/migraph/operators.hpp
+4
-5
No files found.
src/include/migraph/operators.hpp
View file @
5d612a82
...
...
@@ -375,11 +375,10 @@ struct squeeze
std
::
vector
<
std
::
size_t
>
new_lens
;
if
(
axes
.
empty
())
{
for
(
unsigned
long
len
:
old_lens
)
{
if
(
len
!=
1
)
new_lens
.
push_back
(
len
);
}
std
::
copy_if
(
old_lens
.
begin
(),
old_lens
.
end
(),
std
::
back_inserter
(
new_lens
),
[](
auto
len
)
{
return
len
!=
1
;
});
}
else
{
...
...
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