Skip to content

Commit 9f1b2b1

Browse files
rewrite delete_weight_dequant_linear_op_encoder/decoder pass (PaddlePaddle#48650)
* rewrite delete_weight_deqquant_linear_op_encoder/decoder pass
1 parent 3fbbee7 commit 9f1b2b1

11 files changed

+442
-893
lines changed

paddle/fluid/framework/ir/CMakeLists.txt

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,8 @@ pass_library(quant_conv2d_dequant_fuse_pass inference)
9595
pass_library(shuffle_channel_detect_pass inference)
9696
pass_library(delete_quant_dequant_op_pass inference)
9797
pass_library(delete_quant_dequant_filter_op_pass inference)
98+
pass_library(trt_delete_weight_dequant_linear_op_pass inference)
9899
pass_library(delete_weight_dequant_linear_op_pass inference)
99-
pass_library(delete_weight_dequant_linear_op_encoder_pass inference)
100-
pass_library(delete_weight_dequant_linear_op_decoder_pass inference)
101100
pass_library(delete_quant_dequant_linear_op_pass inference)
102101
pass_library(delete_dropout_op_pass inference)
103102
pass_library(delete_c_identity_op_pass inference)
@@ -359,6 +358,10 @@ cc_test(
359358
test_delete_dropout_pass_cc
360359
SRCS delete_dropout_op_pass_test.cc
361360
DEPS delete_dropout_op_pass)
361+
cc_test(
362+
test_delete_dequant_weight_linear_op_pass
363+
SRCS delete_weight_dequant_linear_op_pass_tester.cc
364+
DEPS delete_weight_dequant_linear_op_pass)
362365
if(WITH_GPU OR WITH_ROCM)
363366
cc_test(
364367
test_embedding_eltwise_layernorm_fuse_pass

paddle/fluid/framework/ir/delete_weight_dequant_linear_op_decoder_pass.cc

Lines changed: 0 additions & 373 deletions
This file was deleted.

0 commit comments

Comments
 (0)