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
a3affafc
Commit
a3affafc
authored
Aug 29, 2019
by
Shucai Xiao
Browse files
clang format
parent
8822f5d8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
test/gpu/quantization.cpp
test/gpu/quantization.cpp
+6
-5
No files found.
test/gpu/quantization.cpp
View file @
a3affafc
...
@@ -16,14 +16,15 @@
...
@@ -16,14 +16,15 @@
TEST_CASE
(
target_copy
)
TEST_CASE
(
target_copy
)
{
{
auto
run_prog
=
[](
migraphx
::
program
p
,
const
migraphx
::
target
&
t
,
auto
run_prog
=
[](
migraphx
::
program
p
,
migraphx
::
program
::
parameter_map
&
m_in
,
std
::
vector
<
float
>&
res
)
const
migraphx
::
target
&
t
,
{
migraphx
::
program
::
parameter_map
&
m_in
,
std
::
vector
<
float
>&
res
)
{
p
.
compile
(
t
);
p
.
compile
(
t
);
migraphx
::
program
::
parameter_map
m
;
migraphx
::
program
::
parameter_map
m
;
for
(
auto
&&
x
:
p
.
get_parameter_shapes
())
for
(
auto
&&
x
:
p
.
get_parameter_shapes
())
{
{
if
(
m_in
.
count
(
x
.
first
)
>
0
)
if
(
m_in
.
count
(
x
.
first
)
>
0
)
{
{
m
[
x
.
first
]
=
t
.
copy_to
(
m_in
[
x
.
first
]);
m
[
x
.
first
]
=
t
.
copy_to
(
m_in
[
x
.
first
]);
}
}
...
...
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