Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
gaoqiong
MIGraphX
Commits
cc0189df
Commit
cc0189df
authored
Aug 31, 2019
by
Shucai Xiao
Browse files
clang format
parent
5ca76dc5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
test/quantization.cpp
test/quantization.cpp
+1
-2
No files found.
test/quantization.cpp
View file @
cc0189df
...
@@ -539,7 +539,7 @@ TEST_CASE(dot_int32_one_arg)
...
@@ -539,7 +539,7 @@ TEST_CASE(dot_int32_one_arg)
auto
f_dot
=
p
.
add_instruction
(
migraphx
::
op
::
convert
{
migraphx
::
shape
::
float_type
},
q_dot
);
auto
f_dot
=
p
.
add_instruction
(
migraphx
::
op
::
convert
{
migraphx
::
shape
::
float_type
},
q_dot
);
std
::
vector
<
float
>
v_alpha
(
f_dot
->
get_shape
().
elements
(),
20.0
f
);
std
::
vector
<
float
>
v_alpha
(
f_dot
->
get_shape
().
elements
(),
20.0
f
);
auto
new_alpha
=
p
.
add_literal
(
migraphx
::
literal
{
f_dot
->
get_shape
(),
v_alpha
});
auto
new_alpha
=
p
.
add_literal
(
migraphx
::
literal
{
f_dot
->
get_shape
(),
v_alpha
});
auto
alpha_ab
=
p
.
add_instruction
(
migraphx
::
op
::
mul
{},
new_alpha
,
f_dot
);
auto
alpha_ab
=
p
.
add_instruction
(
migraphx
::
op
::
mul
{},
new_alpha
,
f_dot
);
p
.
add_instruction
(
migraphx
::
op
::
convert
{
migraphx
::
shape
::
int32_type
},
alpha_ab
);
p
.
add_instruction
(
migraphx
::
op
::
convert
{
migraphx
::
shape
::
int32_type
},
alpha_ab
);
return
p
;
return
p
;
...
@@ -553,7 +553,6 @@ TEST_CASE(dot_int32_one_arg)
...
@@ -553,7 +553,6 @@ TEST_CASE(dot_int32_one_arg)
EXPECT
(
p
==
qp
);
EXPECT
(
p
==
qp
);
}
}
TEST_CASE
(
dot_int32
)
TEST_CASE
(
dot_int32
)
{
{
auto
create_program
=
[]
{
auto
create_program
=
[]
{
...
...
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