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
b51f960f
"...resnet50_tensorflow.git" did not exist on "60ac72b57a93a6292f10c5a2edc0439cdefb6cc3"
Commit
b51f960f
authored
Aug 14, 2019
by
Shucai Xiao
Browse files
clang format
parent
4c75e7fa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/quantization.cpp
src/quantization.cpp
+2
-2
No files found.
src/quantization.cpp
View file @
b51f960f
...
@@ -77,7 +77,7 @@ instruction_ref insert_quant_ins(program& prog,
...
@@ -77,7 +77,7 @@ instruction_ref insert_quant_ins(program& prog,
auto
rounded_ins
=
prog
.
insert_instruction
(
insert_loc
,
op
::
round
{},
shifted_ins
);
auto
rounded_ins
=
prog
.
insert_instruction
(
insert_loc
,
op
::
round
{},
shifted_ins
);
auto
clipped_ins
=
auto
clipped_ins
=
prog
.
insert_instruction
(
insert_loc
,
op
::
clip
{
127.0
f
,
-
128.0
f
},
rounded_ins
);
prog
.
insert_instruction
(
insert_loc
,
op
::
clip
{
127.0
f
,
-
128.0
f
},
rounded_ins
);
quant_ins
=
prog
.
insert_instruction
(
insert_loc
,
op
::
convert
{
type
},
clipped_ins
);
quant_ins
=
prog
.
insert_instruction
(
insert_loc
,
op
::
convert
{
type
},
clipped_ins
);
}
}
else
else
{
{
...
@@ -299,7 +299,7 @@ void quantize_int8(program& prog,
...
@@ -299,7 +299,7 @@ void quantize_int8(program& prog,
// relative rounding error
// relative rounding error
else
else
{
{
if
(
converted_inputs
.
size
()
==
3
)
if
(
converted_inputs
.
size
()
==
3
)
{
{
converted_inputs
.
pop_back
();
converted_inputs
.
pop_back
();
}
}
...
...
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