Commit cade36d1 authored by Shucai Xiao's avatar Shucai Xiao
Browse files

clang format

parent 5be2964e
...@@ -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];
......
...@@ -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]);
} }
} }
......
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