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
3891ee58
Commit
3891ee58
authored
Apr 27, 2023
by
Khalique Ahmed
Browse files
formatting
parent
3e6a6b3c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
src/eliminate_layout.cpp
src/eliminate_layout.cpp
+1
-1
test/verify/test_conv_add_relu.cpp
test/verify/test_conv_add_relu.cpp
+1
-1
No files found.
src/eliminate_layout.cpp
View file @
3891ee58
...
@@ -104,7 +104,7 @@ void remove_layout(module& m, const std::unordered_set<instruction_ref>& output_
...
@@ -104,7 +104,7 @@ void remove_layout(module& m, const std::unordered_set<instruction_ref>& output_
}
}
if
(
contains
(
output_layouts
,
ins
))
if
(
contains
(
output_layouts
,
ins
))
continue
;
continue
;
m
.
replace_instruction
(
ins
,
ins
->
inputs
().
front
());
m
.
replace_instruction
(
ins
,
ins
->
inputs
().
front
());
}
}
}
}
...
...
test/verify/test_conv_add_relu.cpp
View file @
3891ee58
...
@@ -69,7 +69,7 @@ struct test_conv_add_relu : verify_program<test_conv_add_relu>
...
@@ -69,7 +69,7 @@ struct test_conv_add_relu : verify_program<test_conv_add_relu>
migraphx
::
make_op
(
"broadcast"
,
{{
"axis"
,
1
},
{
"out_lens"
,
conv
->
get_shape
().
lens
()}}),
migraphx
::
make_op
(
"broadcast"
,
{{
"axis"
,
1
},
{
"out_lens"
,
conv
->
get_shape
().
lens
()}}),
bias
);
bias
);
auto
bias_add
=
mm
->
add_instruction
(
migraphx
::
make_op
(
"add"
),
conv
,
bcast_bias
);
auto
bias_add
=
mm
->
add_instruction
(
migraphx
::
make_op
(
"add"
),
conv
,
bcast_bias
);
auto
relu
=
mm
->
add_instruction
(
migraphx
::
make_op
(
"relu"
),
bias_add
);
auto
relu
=
mm
->
add_instruction
(
migraphx
::
make_op
(
"relu"
),
bias_add
);
mm
->
add_instruction
(
migraphx
::
make_op
(
"convolution"
),
relu
,
weights
);
mm
->
add_instruction
(
migraphx
::
make_op
(
"convolution"
),
relu
,
weights
);
return
p
;
return
p
;
}
}
...
...
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