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
9e405e27
Commit
9e405e27
authored
Nov 30, 2023
by
Paul
Browse files
Format
parent
74c98abd
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
src/program.cpp
src/program.cpp
+2
-1
src/reduce_dims.cpp
src/reduce_dims.cpp
+4
-1
No files found.
src/program.cpp
View file @
9e405e27
...
...
@@ -507,7 +507,8 @@ std::vector<argument> generic_eval(const module* mod,
}));
}
assert
(
results
.
find
(
ins
)
!=
results
.
end
());
assert
(
ins
->
get_shape
().
any_of_dynamic
()
or
results
.
at
(
ins
).
get_shape
()
==
ins
->
get_shape
());
assert
(
ins
->
get_shape
().
any_of_dynamic
()
or
results
.
at
(
ins
).
get_shape
()
==
ins
->
get_shape
());
}
return
{
results
.
at
(
std
::
prev
(
mod
->
end
()))};
}
...
...
src/reduce_dims.cpp
View file @
9e405e27
...
...
@@ -76,7 +76,10 @@ void reduce_dim1(std::vector<shape>& shapes)
std
::
size_t
reduce_dim_all
(
std
::
vector
<
shape
>&
shapes
,
std
::
size_t
n
)
{
while
(
reduce_dim
(
shapes
,
n
)
and
n
<
shapes
.
size
())
{
(
void
)
n
;
}
while
(
reduce_dim
(
shapes
,
n
)
and
n
<
shapes
.
size
())
{
(
void
)
n
;
}
return
n
+
1
;
}
void
reduce_dim_all
(
std
::
vector
<
shape
>&
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