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
06349ea9
"...resnet50_tensorflow.git" did not exist on "2986bcafb9eaa8fed4d78f17a04c4c5afc8f6691"
Commit
06349ea9
authored
Nov 24, 2021
by
Shucai Xiao
Browse files
refine the code change
parent
91f635a2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/targets/gpu/lowering.cpp
src/targets/gpu/lowering.cpp
+2
-2
No files found.
src/targets/gpu/lowering.cpp
View file @
06349ea9
...
@@ -574,11 +574,11 @@ struct miopen_apply
...
@@ -574,11 +574,11 @@ struct miopen_apply
if
(
type
==
shape
::
half_type
)
if
(
type
==
shape
::
half_type
)
{
{
shape
s32
{
shape
::
float_type
,
s
.
lens
()};
shape
s32
{
shape
::
float_type
,
s
.
lens
()};
auto
cout32
=
insert_
alloca
tion
(
ins
,
s32
);
auto
cout32
=
mod
->
insert_
instruc
tion
(
ins
,
make_op
(
"hip::allocate"
,
{{
"shape"
,
to_value
(
s32
)}})
);
auto
cop32
=
make_op
(
"convert"
,
{{
"target_type"
,
shape
::
float_type
}});
auto
cop32
=
make_op
(
"convert"
,
{{
"target_type"
,
shape
::
float_type
}});
auto
convert32
=
mod
->
insert_instruction
(
auto
convert32
=
mod
->
insert_instruction
(
ins
,
make_op
(
"gpu::convert"
,
cop32
.
to_value
()),
in
,
cout32
);
ins
,
make_op
(
"gpu::convert"
,
cop32
.
to_value
()),
in
,
cout32
);
auto
lout32
=
insert_
alloca
tion
(
ins
,
s32
);
auto
lout32
=
mod
->
insert_
instruc
tion
(
ins
,
make_op
(
"hip::allocate"
,
{{
"shape"
,
to_value
(
s32
)}})
);
auto
lrn32
=
mod
->
insert_instruction
(
auto
lrn32
=
mod
->
insert_instruction
(
ins
,
make_op
(
"gpu::lrn"
,
ins
->
get_operator
().
to_value
()),
convert32
,
lout32
);
ins
,
make_op
(
"gpu::lrn"
,
ins
->
get_operator
().
to_value
()),
convert32
,
lout32
);
auto
cop16
=
make_op
(
"convert"
,
{{
"target_type"
,
shape
::
half_type
}});
auto
cop16
=
make_op
(
"convert"
,
{{
"target_type"
,
shape
::
half_type
}});
...
...
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