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
fa542e7c
Commit
fa542e7c
authored
Feb 11, 2022
by
Shucai Xiao
Browse files
fixed review comments
parent
f426922a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
src/auto_contiguous.cpp
src/auto_contiguous.cpp
+1
-1
src/include/migraphx/op/reduce_op.hpp
src/include/migraphx/op/reduce_op.hpp
+1
-1
src/include/migraphx/op/reshape.hpp
src/include/migraphx/op/reshape.hpp
+1
-1
No files found.
src/auto_contiguous.cpp
View file @
fa542e7c
...
@@ -10,7 +10,7 @@ inline namespace MIGRAPHX_INLINE_NS {
...
@@ -10,7 +10,7 @@ inline namespace MIGRAPHX_INLINE_NS {
void
auto_contiguous
::
apply
(
module
&
p
)
const
void
auto_contiguous
::
apply
(
module
&
p
)
const
{
{
std
::
string
key
=
"st
andard_input
_shape"
;
std
::
string
key
=
"st
d
_shape"
;
for
(
auto
ins
:
reverse_iterator_for
(
p
))
for
(
auto
ins
:
reverse_iterator_for
(
p
))
{
{
auto
&&
attr
=
ins
->
get_operator
().
attributes
();
auto
&&
attr
=
ins
->
get_operator
().
attributes
();
...
...
src/include/migraphx/op/reduce_op.hpp
View file @
fa542e7c
...
@@ -66,7 +66,7 @@ struct reduce_op : op_name<Derived>
...
@@ -66,7 +66,7 @@ struct reduce_op : op_name<Derived>
{
{
value
normalize
;
value
normalize
;
normalize
[
"axes"
]
=
value
::
array
{
normalize_attribute
::
include_min
};
normalize
[
"axes"
]
=
value
::
array
{
normalize_attribute
::
include_min
};
return
{{
"normalize_axes"
,
normalize
},
{
"st
andard_input
_shape"
,
true
}};
return
{{
"normalize_axes"
,
normalize
},
{
"st
d
_shape"
,
true
}};
}
}
std
::
vector
<
int64_t
>
tune_axes
(
std
::
size_t
n_dim
)
const
std
::
vector
<
int64_t
>
tune_axes
(
std
::
size_t
n_dim
)
const
...
...
src/include/migraphx/op/reshape.hpp
View file @
fa542e7c
...
@@ -27,7 +27,7 @@ struct reshape
...
@@ -27,7 +27,7 @@ struct reshape
return
pack
(
f
(
self
.
dims
,
"dims"
));
return
pack
(
f
(
self
.
dims
,
"dims"
));
}
}
value
attributes
()
const
{
return
{{
"st
andard_input
_shape"
,
true
}};
}
value
attributes
()
const
{
return
{{
"st
d
_shape"
,
true
}};
}
std
::
string
name
()
const
{
return
"reshape"
;
}
std
::
string
name
()
const
{
return
"reshape"
;
}
shape
compute_shape
(
std
::
vector
<
shape
>
inputs
)
const
shape
compute_shape
(
std
::
vector
<
shape
>
inputs
)
const
...
...
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