Skip to content

Commit

Permalink
roback
Browse files Browse the repository at this point in the history
  • Loading branch information
zeroRains committed Jan 23, 2024
1 parent bb9c27c commit 7b3136f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 29 deletions.
4 changes: 0 additions & 4 deletions paddle/fluid/framework/ir/mkldnn/cpu_quantize_squash_pass.cc
Original file line number Diff line number Diff line change
Expand Up @@ -360,14 +360,12 @@ void CPUQuantizeSquashPass::OpDequantSquash(Graph* graph) const {
int found_op_dequant_squash_count = 0;
auto handler = [&](const GraphPatternDetector::subgraph_t& subgraph,
Graph* g) {
std::cout<<"hello, can you come here?___________________________"<<std::endl;
VLOG(4) << "squash op-dequant ops pair";

GET_IR_NODE_FROM_SUBGRAPH(any_op, any_op, op_dequant_pattern);
GET_IR_NODE_FROM_SUBGRAPH(dequant_in, dequant_in, op_dequant_pattern);
GET_IR_NODE_FROM_SUBGRAPH(dequant_op, dequant_op, op_dequant_pattern);
GET_IR_NODE_FROM_SUBGRAPH(dequant_out, dequant_out, op_dequant_pattern);
std::cout<<"finished do that__________________________________"<<std::endl;
if (dequant_in->outputs.size() == 1) {
if (any_op->Op()->Type() == "conv2d" ||
any_op->Op()->Type() == "fused_conv2d" ||
Expand All @@ -394,9 +392,7 @@ void CPUQuantizeSquashPass::OpDequantSquash(Graph* graph) const {
found_op_dequant_squash_count++;
}
};
std::cout<<"step_____________________________________________1"<<std::endl;
gpd(graph, handler);
std::cout<<"step_____________________________________________2"<<std::endl;
AddStatis(found_op_dequant_squash_count);
PrettyLogDetail("--- squashed %d dequant with ops",
found_op_dequant_squash_count);
Expand Down
25 changes: 0 additions & 25 deletions paddle/fluid/pir/dialect/operator/ir/pd_onednn_op_info.cc

This file was deleted.

0 comments on commit 7b3136f

Please sign in to comment.