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
604e4493
Commit
604e4493
authored
Jul 14, 2022
by
charlie
Browse files
Update other normalize_attributes() calls
parent
af4561c4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
src/include/migraphx/operation.hpp
src/include/migraphx/operation.hpp
+1
-1
src/instruction.cpp
src/instruction.cpp
+1
-1
No files found.
src/include/migraphx/operation.hpp
View file @
604e4493
...
...
@@ -139,7 +139,7 @@ auto compute_shape_op(rank<2>, const T& x, const std::vector<shape>& inputs)
->
decltype
(
x
.
normalize_compute_shape
(
inputs
))
{
dependent_type
<
operation
,
T
>
y
=
x
;
normalize_attributes
(
y
,
inputs
[
0
]);
normalize_attributes
(
y
,
inputs
[
0
]
.
max_lens
()
);
return
any_cast
<
T
>
(
y
).
normalize_compute_shape
(
inputs
);
}
...
...
src/instruction.cpp
View file @
604e4493
...
...
@@ -446,7 +446,7 @@ operation instruction::normalized_operator() const
if
(
this
->
need_normalization
())
{
auto
s
=
this
->
inputs
().
front
()
->
get_shape
();
if
(
!
normalize_attributes
(
o
,
s
))
if
(
!
normalize_attributes
(
o
,
s
.
max_lens
()
))
return
this
->
get_operator
();
}
return
o
;
...
...
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