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
c98b919f
"...composable_kernel_rocm.git" did not exist on "52f649675740cb2227c16f18c7f410914302c70a"
Commit
c98b919f
authored
Apr 24, 2019
by
Shucai Xiao
Browse files
code cleanup for the function quantization.cpp
parent
8c8d719f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
9 deletions
+1
-9
src/quantization.cpp
src/quantization.cpp
+1
-9
No files found.
src/quantization.cpp
View file @
c98b919f
...
@@ -33,14 +33,7 @@ instruction_ref insert_fp16(program& prog,
...
@@ -33,14 +33,7 @@ instruction_ref insert_fp16(program& prog,
}
}
else
else
{
{
if
(
ins
==
std
::
prev
(
prog
.
end
()))
ins_fp16
=
prog
.
insert_instruction
(
std
::
next
(
ins
),
op
::
convert
{
type
},
ins
);
{
ins_fp16
=
prog
.
add_instruction
(
op
::
convert
{
type
},
ins
);
}
else
{
ins_fp16
=
prog
.
insert_instruction
(
std
::
next
(
ins
),
op
::
convert
{},
ins
);
}
}
}
map_fp16
[
ins
]
=
ins_fp16
;
map_fp16
[
ins
]
=
ins_fp16
;
...
@@ -79,7 +72,6 @@ void quantize(program& prog, const std::vector<std::string>& ins_names)
...
@@ -79,7 +72,6 @@ void quantize(program& prog, const std::vector<std::string>& ins_names)
{
{
input_fp16
=
insert_fp16
(
prog
,
input
,
shape
::
half_type
,
map_fp16
);
input_fp16
=
insert_fp16
(
prog
,
input
,
shape
::
half_type
,
map_fp16
);
}
}
// instruction::replace_argument(ins, input, input_fp16, false);
converted_inputs
.
push_back
(
input_fp16
);
converted_inputs
.
push_back
(
input_fp16
);
}
}
else
else
...
...
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