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
585bb331
Commit
585bb331
authored
May 08, 2019
by
Shucai Xiao
Browse files
clang format
parent
984fd19c
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
46 additions
and
46 deletions
+46
-46
src/targets/cpu/lowering.cpp
src/targets/cpu/lowering.cpp
+4
-4
src/targets/gpu/include/migraphx/gpu/miopen.hpp
src/targets/gpu/include/migraphx/gpu/miopen.hpp
+7
-7
src/targets/gpu/quant_convolution.cpp
src/targets/gpu/quant_convolution.cpp
+35
-35
No files found.
src/targets/cpu/lowering.cpp
View file @
585bb331
src/targets/gpu/include/migraphx/gpu/miopen.hpp
View file @
585bb331
...
@@ -51,7 +51,7 @@ inline tensor_descriptor make_tensor(const migraphx::shape& s, bool pack = false
...
@@ -51,7 +51,7 @@ inline tensor_descriptor make_tensor(const migraphx::shape& s, bool pack = false
d
=
miopenHalf
;
d
=
miopenHalf
;
else
if
(
s
.
type
()
==
shape
::
int8_type
)
else
if
(
s
.
type
()
==
shape
::
int8_type
)
{
{
if
(
pack
)
if
(
pack
)
{
{
// update the lens and corresponding strides
// update the lens and corresponding strides
d
=
miopenInt8x4
;
d
=
miopenInt8x4
;
...
...
src/targets/gpu/quant_convolution.cpp
View file @
585bb331
...
@@ -32,7 +32,7 @@ argument miopen_quant_convolution::compute(context& ctx,
...
@@ -32,7 +32,7 @@ argument miopen_quant_convolution::compute(context& ctx,
&
beta
,
&
beta
,
x_desc_vec4
.
get
(),
x_desc_vec4
.
get
(),
arg_vec4_x
.
implicit
());
arg_vec4_x
.
implicit
());
if
(
status
!=
miopenStatusSuccess
)
if
(
status
!=
miopenStatusSuccess
)
{
{
MIGRAPHX_THROW
(
"QUANT_CONVOLUTION: transform input tensfor failed"
);
MIGRAPHX_THROW
(
"QUANT_CONVOLUTION: transform input tensfor failed"
);
}
}
...
@@ -44,7 +44,7 @@ argument miopen_quant_convolution::compute(context& ctx,
...
@@ -44,7 +44,7 @@ argument miopen_quant_convolution::compute(context& ctx,
&
beta
,
&
beta
,
w_desc_vec4
.
get
(),
w_desc_vec4
.
get
(),
arg_vec4_w
.
implicit
());
arg_vec4_w
.
implicit
());
if
(
status
!=
miopenStatusSuccess
)
if
(
status
!=
miopenStatusSuccess
)
{
{
MIGRAPHX_THROW
(
"QUANT_CONVOLUTION: transform weight tensfor failed"
);
MIGRAPHX_THROW
(
"QUANT_CONVOLUTION: transform weight tensfor failed"
);
}
}
...
@@ -62,7 +62,7 @@ argument miopen_quant_convolution::compute(context& ctx,
...
@@ -62,7 +62,7 @@ argument miopen_quant_convolution::compute(context& ctx,
args
[
3
].
implicit
(),
args
[
3
].
implicit
(),
args
[
2
].
implicit
(),
args
[
2
].
implicit
(),
args
[
2
].
get_shape
().
bytes
());
args
[
2
].
get_shape
().
bytes
());
if
(
status
!=
miopenStatusSuccess
)
if
(
status
!=
miopenStatusSuccess
)
{
{
MIGRAPHX_THROW
(
"QUANT_CONVOLUTION: run convolution forward failed"
);
MIGRAPHX_THROW
(
"QUANT_CONVOLUTION: run convolution forward failed"
);
}
}
...
@@ -132,7 +132,7 @@ void miopen_quant_convolution::finalize(context& ctx,
...
@@ -132,7 +132,7 @@ void miopen_quant_convolution::finalize(context& ctx,
shape
miopen_quant_convolution
::
pack_int8_shape
(
shape
&
s
)
shape
miopen_quant_convolution
::
pack_int8_shape
(
shape
&
s
)
{
{
if
(
s
.
type
()
!=
shape
::
int8_type
)
if
(
s
.
type
()
!=
shape
::
int8_type
)
{
{
MIGRAPHX_THROW
(
"PACK_INT8_SHAPE: only process int8_type"
);
MIGRAPHX_THROW
(
"PACK_INT8_SHAPE: only process int8_type"
);
}
}
...
...
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