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
0fbdaf58
Commit
0fbdaf58
authored
Sep 03, 2019
by
Shucai Xiao
Browse files
clang format
parent
48b27a7f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
src/quantization.cpp
src/quantization.cpp
+5
-3
No files found.
src/quantization.cpp
View file @
0fbdaf58
...
@@ -309,11 +309,13 @@ void quantize_int8(program& prog,
...
@@ -309,11 +309,13 @@ void quantize_int8(program& prog,
const
std
::
vector
<
std
::
pair
<
float
,
float
>>&
quant_params
,
const
std
::
vector
<
std
::
pair
<
float
,
float
>>&
quant_params
,
const
std
::
vector
<
std
::
string
>&
ins_names
)
const
std
::
vector
<
std
::
string
>&
ins_names
)
{
{
if
(
enabled
(
MIGRAPHX_INT8_QUANTIZATION_PARAMS
{}))
{
if
(
enabled
(
MIGRAPHX_INT8_QUANTIZATION_PARAMS
{}))
for
(
std
::
size_t
i
=
0
;
i
<
quant_params
.
size
();
++
i
)
{
for
(
std
::
size_t
i
=
0
;
i
<
quant_params
.
size
();
++
i
)
{
{
auto
param
=
quant_params
.
at
(
i
);
auto
param
=
quant_params
.
at
(
i
);
std
::
cout
<<
"ins_index = "
<<
i
<<
", scale = "
<<
param
.
first
<<
", shift = "
<<
param
.
second
<<
std
::
endl
;
std
::
cout
<<
"ins_index = "
<<
i
<<
", scale = "
<<
param
.
first
<<
", shift = "
<<
param
.
second
<<
std
::
endl
;
}
}
std
::
cout
<<
std
::
endl
;
std
::
cout
<<
std
::
endl
;
}
}
...
...
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