Commit 585bb331 authored by Shucai Xiao's avatar Shucai Xiao
Browse files

clang format

parent 984fd19c
...@@ -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;
......
...@@ -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");
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment