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
de6a9ba6
Unverified
Commit
de6a9ba6
authored
Dec 06, 2022
by
Brian Pickrell
Committed by
GitHub
Dec 06, 2022
Browse files
Merge branch 'develop' into dynamic_reduce
parents
0fe131d2
48cc33e4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
8 deletions
+4
-8
src/include/migraphx/op/squeeze.hpp
src/include/migraphx/op/squeeze.hpp
+4
-8
No files found.
src/include/migraphx/op/squeeze.hpp
View file @
de6a9ba6
...
...
@@ -70,14 +70,10 @@ struct squeeze
std
::
vector
<
shape
::
dynamic_dimension
>
dyn_dims
=
{};
if
(
axes
.
empty
())
{
for
(
auto
i
:
range
(
input_shape
.
ndim
()))
{
auto
dd
=
input_shape
.
dyn_dims
()[
i
];
if
(
dd
!=
one_dyn_dim
)
{
dyn_dims
.
push_back
(
dd
);
}
}
std
::
copy_if
(
input_shape
.
dyn_dims
().
cbegin
(),
input_shape
.
dyn_dims
().
cend
(),
std
::
back_inserter
(
dyn_dims
),
[
&
](
auto
dd
)
{
return
dd
!=
one_dyn_dim
;
});
}
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