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

clang format

parent d95143d5
......@@ -67,9 +67,7 @@ struct instruction
static void backreference(instruction_ref ref);
static void replace_argument(instruction_ref ins,
instruction_ref old,
instruction_ref new_ins);
static void replace_argument(instruction_ref ins, instruction_ref old, instruction_ref new_ins);
static void
replace(instruction_ref ins, operation o, const shape& r, std::vector<instruction_ref> args);
......
......@@ -78,7 +78,7 @@ void quantize_ins(program& prog, const std::vector<std::string>& ins_names)
{
input_fp16 = insert_fp16(prog, input, shape::half_type, map_fp16);
}
//instruction::replace_argument(ins, input, input_fp16, false);
// instruction::replace_argument(ins, input, input_fp16, false);
converted_inputs.push_back(input_fp16);
}
else
......@@ -87,13 +87,13 @@ void quantize_ins(program& prog, const std::vector<std::string>& ins_names)
}
}
if (inputs != converted_inputs)
if(inputs != converted_inputs)
{
auto op = ins->get_operator();
instruction::replace(ins, op, compute_shape(op, converted_inputs), converted_inputs);
}
if (ins->get_shape().type() != orig_type)
if(ins->get_shape().type() != orig_type)
{
// insert another fp_conversion instruction to convert it back
if(ins == std::prev(prog.end()))
......
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