Commit 908ed025 authored by Shucai Xiao's avatar Shucai Xiao
Browse files

clang format

parent 28ab5f76
...@@ -13,7 +13,7 @@ namespace device { ...@@ -13,7 +13,7 @@ namespace device {
void pack_a(hipStream_t stream, const argument& result, const argument& arg) void pack_a(hipStream_t stream, const argument& result, const argument& arg)
{ {
auto comp_shape = arg.get_shape(); auto comp_shape = arg.get_shape();
auto out_lens = comp_shape.lens(); auto out_lens = comp_shape.lens();
auto dim_0 = out_lens.size() - 2; auto dim_0 = out_lens.size() - 2;
auto dim_1 = out_lens.size() - 1; auto dim_1 = out_lens.size() - 1;
......
...@@ -30,7 +30,6 @@ struct miopen_quant_gemm ...@@ -30,7 +30,6 @@ struct miopen_quant_gemm
{ {
return shapes.size() - 1; return shapes.size() - 1;
} }
}; };
} // namespace gpu } // namespace gpu
......
...@@ -177,11 +177,11 @@ struct miopen_apply ...@@ -177,11 +177,11 @@ struct miopen_apply
void add_quant_dot_op() void add_quant_dot_op()
{ {
apply_map.emplace("quant_dot", [=](instruction_ref ins) { apply_map.emplace("quant_dot", [=](instruction_ref ins) {
auto&& op = any_cast<op::quant_dot>(ins->get_operator()); auto&& op = any_cast<op::quant_dot>(ins->get_operator());
auto inputs = ins->inputs(); auto inputs = ins->inputs();
auto in_shapes = to_shapes(inputs); auto in_shapes = to_shapes(inputs);
auto arg_a = allocate_gpu(in_shapes[0]); auto arg_a = allocate_gpu(in_shapes[0]);
auto arg_b = allocate_gpu(in_shapes[1]); auto arg_b = allocate_gpu(in_shapes[1]);
auto quant_dot = miopen_quant_gemm{op, arg_a, arg_b}; auto quant_dot = miopen_quant_gemm{op, arg_a, arg_b};
auto output = insert_allocation(ins, ins->get_shape()); auto output = insert_allocation(ins, ins->get_shape());
......
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