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
1a628d7e
Commit
1a628d7e
authored
Sep 04, 2019
by
Shucai Xiao
Browse files
clang format
parent
1d3527d1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
test/quantization.cpp
test/quantization.cpp
+4
-6
No files found.
test/quantization.cpp
View file @
1a628d7e
...
@@ -981,10 +981,8 @@ TEST_CASE(int8_quantization_conv)
...
@@ -981,10 +981,8 @@ TEST_CASE(int8_quantization_conv)
migraphx
::
shape
sx
{
migraphx
::
shape
::
float_type
,
{
4
,
2
,
2
,
2
}};
migraphx
::
shape
sx
{
migraphx
::
shape
::
float_type
,
{
4
,
2
,
2
,
2
}};
migraphx
::
shape
sw
{
migraphx
::
shape
::
float_type
,
{
4
,
2
,
2
,
2
}};
migraphx
::
shape
sw
{
migraphx
::
shape
::
float_type
,
{
4
,
2
,
2
,
2
}};
std
::
vector
<
float
>
v
(
sx
.
elements
(),
0.5
f
);
std
::
vector
<
float
>
v
(
sx
.
elements
(),
0.5
f
);
auto
input
=
auto
input
=
p
.
add_literal
(
migraphx
::
literal
(
sx
,
v
));
p
.
add_literal
(
migraphx
::
literal
(
sx
,
v
));
auto
weights
=
p
.
add_literal
(
migraphx
::
literal
(
sw
,
v
));
auto
weights
=
p
.
add_literal
(
migraphx
::
literal
(
sw
,
v
));
p
.
add_instruction
(
migraphx
::
op
::
convolution
{},
input
,
weights
);
p
.
add_instruction
(
migraphx
::
op
::
convolution
{},
input
,
weights
);
return
p
;
return
p
;
...
@@ -999,12 +997,12 @@ TEST_CASE(int8_quantization_conv)
...
@@ -999,12 +997,12 @@ TEST_CASE(int8_quantization_conv)
std
::
vector
<
float
>
no_quant_result
;
std
::
vector
<
float
>
no_quant_result
;
run_prog
(
p
,
cpu_t
,
no_quant_result
);
run_prog
(
p
,
cpu_t
,
no_quant_result
);
for
(
auto
v
:
no_quant_result
)
for
(
auto
v
:
no_quant_result
)
{
{
std
::
cout
<<
v
<<
"
\t
"
;
std
::
cout
<<
v
<<
"
\t
"
;
}
}
std
::
cout
<<
std
::
endl
;
std
::
cout
<<
std
::
endl
;
for
(
auto
v
:
quant_result
)
for
(
auto
v
:
quant_result
)
{
{
std
::
cout
<<
v
<<
"
\t
"
;
std
::
cout
<<
v
<<
"
\t
"
;
}
}
...
...
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