未验证 提交 667bf188 编写于 作者: B baoachun 提交者: GitHub

fix nullptr block in op_teller (#36197)

上级 7e60cc63
......@@ -548,7 +548,8 @@ void QuantDequantFusePass::FuseDequant(ir::Graph* graph, Scope* scope,
std::string new_input = quantized_op_input_node->Name();
std::string new_output = dequant_op_out_node->Name();
framework::OpDesc new_op_desc(base_op_desc, nullptr);
framework::OpDesc new_op_desc(base_op_desc,
quantized_op_node->Op()->Block());
new_op_desc.SetType(quantized_op_type);
new_op_desc.SetAttr("enable_int8", true);
if (quantized_op_type == "conv2d" || quantized_op_type == "conv2d_fusion" ||
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册