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
e70d4269
Commit
e70d4269
authored
May 18, 2022
by
Paul
Browse files
Format
parent
03ae8013
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
src/reduce_dims.cpp
src/reduce_dims.cpp
+2
-3
No files found.
src/reduce_dims.cpp
View file @
e70d4269
...
@@ -37,9 +37,8 @@ bool reduce_dim(std::vector<shape>& shapes, std::size_t n)
...
@@ -37,9 +37,8 @@ bool reduce_dim(std::vector<shape>& shapes, std::size_t n)
void
reduce_dim1
(
std
::
vector
<
shape
>&
shapes
)
void
reduce_dim1
(
std
::
vector
<
shape
>&
shapes
)
{
{
if
(
std
::
any_of
(
shapes
.
begin
(),
shapes
.
end
(),
[
&
](
const
auto
&
s
)
{
if
(
std
::
any_of
(
return
s
.
lens
().
back
()
!=
1
;
shapes
.
begin
(),
shapes
.
end
(),
[
&
](
const
auto
&
s
)
{
return
s
.
lens
().
back
()
!=
1
;
}))
}))
return
;
return
;
for
(
auto
&
s
:
shapes
)
for
(
auto
&
s
:
shapes
)
{
{
...
...
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