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
e35ad617
"ts/vscode:/vscode.git/clone" did not exist on "7978c25a3f9ebc94a979ccec47b4fdc46099a5be"
Commit
e35ad617
authored
Jan 27, 2022
by
Shucai Xiao
Browse files
clang format
parent
4eaf846f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
5 deletions
+2
-5
src/auto_contiguous.cpp
src/auto_contiguous.cpp
+1
-1
src/include/migraphx/op/reshape.hpp
src/include/migraphx/op/reshape.hpp
+1
-4
No files found.
src/auto_contiguous.cpp
View file @
e35ad617
...
@@ -17,7 +17,7 @@ void auto_contiguous::apply(module& p) const
...
@@ -17,7 +17,7 @@ void auto_contiguous::apply(module& p) const
auto
&&
attr
=
ins
->
get_operator
().
attributes
();
auto
&&
attr
=
ins
->
get_operator
().
attributes
();
if
((
attr
.
contains
(
key
)
and
attr
.
at
(
key
).
to
<
bool
>
()))
if
((
attr
.
contains
(
key
)
and
attr
.
at
(
key
).
to
<
bool
>
()))
{
{
auto
args
=
ins
->
inputs
();
auto
args
=
ins
->
inputs
();
auto
new_args
=
args
;
auto
new_args
=
args
;
std
::
transform
(
args
.
begin
(),
args
.
end
(),
new_args
.
begin
(),
[
&
](
auto
in
)
{
std
::
transform
(
args
.
begin
(),
args
.
end
(),
new_args
.
begin
(),
[
&
](
auto
in
)
{
return
p
.
replace_instruction
(
ins
,
make_op
(
"contiguous"
),
in
);
return
p
.
replace_instruction
(
ins
,
make_op
(
"contiguous"
),
in
);
...
...
src/include/migraphx/op/reshape.hpp
100755 → 100644
View file @
e35ad617
...
@@ -27,10 +27,7 @@ struct reshape
...
@@ -27,10 +27,7 @@ struct reshape
return
pack
(
f
(
self
.
dims
,
"dims"
));
return
pack
(
f
(
self
.
dims
,
"dims"
));
}
}
value
attributes
()
const
value
attributes
()
const
{
return
{{
"standard_input_shape"
,
true
}};
}
{
return
{{
"standard_input_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