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
cade36d1
Commit
cade36d1
authored
May 28, 2019
by
Shucai Xiao
Browse files
clang format
parent
5be2964e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
src/targets/cpu/lowering.cpp
src/targets/cpu/lowering.cpp
+3
-3
src/targets/gpu/quant_gemm.cpp
src/targets/gpu/quant_gemm.cpp
+2
-2
No files found.
src/targets/cpu/lowering.cpp
View file @
cade36d1
...
@@ -232,9 +232,9 @@ struct cpu_quant_convolution
...
@@ -232,9 +232,9 @@ struct cpu_quant_convolution
auto
wei_w
=
wei
[
3
];
auto
wei_w
=
wei
[
3
];
par_dfor
(
output_shape
.
lens
()[
0
],
par_dfor
(
output_shape
.
lens
()[
0
],
output_shape
.
lens
()[
1
],
output_shape
.
lens
()[
1
],
output_shape
.
lens
()[
2
],
output_shape
.
lens
()[
2
],
output_shape
.
lens
()[
3
])(
output_shape
.
lens
()[
3
])(
[
&
](
std
::
size_t
o
,
std
::
size_t
w
,
std
::
size_t
i
,
std
::
size_t
j
)
{
[
&
](
std
::
size_t
o
,
std
::
size_t
w
,
std
::
size_t
i
,
std
::
size_t
j
)
{
const
auto
start_x
=
i
*
op
.
stride
[
0
]
-
op
.
padding
[
0
];
const
auto
start_x
=
i
*
op
.
stride
[
0
]
-
op
.
padding
[
0
];
const
auto
start_y
=
j
*
op
.
stride
[
1
]
-
op
.
padding
[
1
];
const
auto
start_y
=
j
*
op
.
stride
[
1
]
-
op
.
padding
[
1
];
...
...
src/targets/gpu/quant_gemm.cpp
View file @
cade36d1
...
@@ -64,7 +64,7 @@ shape miopen_quant_gemm::compute_shape(const std::vector<shape>& inputs) const
...
@@ -64,7 +64,7 @@ shape miopen_quant_gemm::compute_shape(const std::vector<shape>& inputs) const
{
{
if
(
arg_b
.
empty
())
if
(
arg_b
.
empty
())
{
{
auto
*
p_this
=
const_cast
<
miopen_quant_gemm
*>
(
this
);
auto
*
p_this
=
const_cast
<
miopen_quant_gemm
*>
(
this
);
p_this
->
arg_b
=
allocate_gpu
(
inputs
[
1
]);
p_this
->
arg_b
=
allocate_gpu
(
inputs
[
1
]);
}
}
}
}
...
@@ -73,7 +73,7 @@ shape miopen_quant_gemm::compute_shape(const std::vector<shape>& inputs) const
...
@@ -73,7 +73,7 @@ shape miopen_quant_gemm::compute_shape(const std::vector<shape>& inputs) const
{
{
if
(
arg_a
.
empty
())
if
(
arg_a
.
empty
())
{
{
auto
*
p_this
=
const_cast
<
miopen_quant_gemm
*>
(
this
);
auto
*
p_this
=
const_cast
<
miopen_quant_gemm
*>
(
this
);
p_this
->
arg_a
=
allocate_gpu
(
inputs
[
0
]);
p_this
->
arg_a
=
allocate_gpu
(
inputs
[
0
]);
}
}
}
}
...
...
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