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
0f45ff79
"src/git@developer.sourcefind.cn:gaoqiong/migraphx.git" did not exist on "2b88574d53f22477954ecbfcd5f0b770a5b5291c"
Commit
0f45ff79
authored
Nov 28, 2022
by
Khalique Ahmed
Browse files
test changes
parent
30a0b238
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
2 deletions
+16
-2
src/rewrite_gemm.cpp
src/rewrite_gemm.cpp
+14
-0
src/targets/gpu/target.cpp
src/targets/gpu/target.cpp
+2
-2
No files found.
src/rewrite_gemm.cpp
View file @
0f45ff79
...
@@ -73,6 +73,20 @@ void rewrite_gemm::apply(module& m) const
...
@@ -73,6 +73,20 @@ void rewrite_gemm::apply(module& m) const
in1
=
m
.
insert_instruction
(
ins
,
make_op
(
"reshape"
,
{{
"dims"
,
new_lens1
}}),
in1
);
in1
=
m
.
insert_instruction
(
ins
,
make_op
(
"reshape"
,
{{
"dims"
,
new_lens1
}}),
in1
);
}
}
// auto conv =
// m.insert_instruction(ins, make_op("convolution"), {in0, in1});
// auto conv_transpose = conv;
// auto out_lens = conv_transpose->get_shape().lens();
// auto conv_transpose_out = conv_transpose;
// if(out_lens.size() != in_size)
// {
// out_lens.erase(out_lens.begin(), out_lens.begin() + (out_lens.size() - in_size));
// conv_transpose_out =
// m.insert_instruction(ins, make_op("reshape", {{"dims", out_lens}}), conv_transpose);
// }
// m.replace_instruction(ins, conv_transpose_out);
auto
in0_transposed
=
auto
in0_transposed
=
m
.
insert_instruction
(
ins
,
make_op
(
"transpose"
,
{{
"permutation"
,
{
0
,
3
,
1
,
2
}}}),
in0
);
m
.
insert_instruction
(
ins
,
make_op
(
"transpose"
,
{{
"permutation"
,
{
0
,
3
,
1
,
2
}}}),
in0
);
auto
in1_transposed
=
auto
in1_transposed
=
...
...
src/targets/gpu/target.cpp
View file @
0f45ff79
...
@@ -155,8 +155,8 @@ std::vector<pass> target::get_passes(migraphx::context& gctx, const compile_opti
...
@@ -155,8 +155,8 @@ std::vector<pass> target::get_passes(migraphx::context& gctx, const compile_opti
dead_code_elimination
{},
dead_code_elimination
{},
replace_allocate
{
gpu_allocation_model
{},
options
.
offload_copy
},
replace_allocate
{
gpu_allocation_model
{},
options
.
offload_copy
},
dead_code_elimination
{},
dead_code_elimination
{},
adjust_allocation
{
gpu_allocation_model
{}},
//
adjust_allocation{gpu_allocation_model{}},
dead_code_elimination
{},
//
dead_code_elimination{},
compile_ops
{
&
ctx
},
compile_ops
{
&
ctx
},
dead_code_elimination
{},
dead_code_elimination
{},
write_literals
{
&
ctx
},
write_literals
{
&
ctx
},
...
...
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