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
8ce572f8
Commit
8ce572f8
authored
Aug 07, 2018
by
Aditya Atluri
Browse files
added proper arguments to replace instruction
parent
c7debe34
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
src/targets/gpu/lowering.cpp
src/targets/gpu/lowering.cpp
+8
-2
No files found.
src/targets/gpu/lowering.cpp
View file @
8ce572f8
...
@@ -388,8 +388,14 @@ struct miopen_apply
...
@@ -388,8 +388,14 @@ struct miopen_apply
{
{
auto
&&
op
=
any_cast
<
batch_norm_inference
>
(
ins
->
op
);
auto
&&
op
=
any_cast
<
batch_norm_inference
>
(
ins
->
op
);
auto
output
=
insert_allocation
(
ins
,
ins
->
result
);
auto
output
=
insert_allocation
(
ins
,
ins
->
result
);
prog
->
replace_instruction
(
prog
->
replace_instruction
(
ins
,
ins
,
miopen_batch_norm_inference
{
op
},
ins
->
arguments
.
at
(
0
),
output
);
miopen_batch_norm_inference
{
op
},
ins
->
arguments
.
at
(
0
),
ins
->
arguments
.
at
(
1
),
ins
->
arguments
.
at
(
2
),
ins
->
arguments
.
at
(
3
),
ins
->
arguments
.
at
(
4
),
output
);
}
}
};
};
...
...
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