Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
bukejiyu committed Jan 11, 2024
1 parent 8f2b7a3 commit a8bc26a
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 539 deletions.
4 changes: 1 addition & 3 deletions paddle/fluid/inference/api/analysis_predictor.cc
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,6 @@
#include "paddle/fluid/pir/transforms/fusion/conv2d_bn_fuse_pass.h"
#include "paddle/fluid/pir/transforms/fusion/fc_elementwise_layernorm_fuse_pass.h"
#include "paddle/fluid/pir/transforms/fusion/fc_fuse_pass.h"
#include "paddle/fluid/pir/transforms/fusion/fc_with_special_op_fuse_pass.h"
#include "paddle/fluid/pir/transforms/fusion/matmul_scale_fuse_pass.h"
#include "paddle/fluid/pir/transforms/identity_op_clean_pass.h"
#include "paddle/fluid/pir/transforms/inplace_pass.h"
Expand Down Expand Up @@ -800,7 +799,6 @@ bool AnalysisPredictor::PrepareExecutor() {
gpu_pm.AddPass(::pir::CreateConv2dBnFusePass());
gpu_pm.AddPass(::pir::CreateConv2dAddActFusePass());
gpu_pm.AddPass(::pir::CreateConv2dAddFusePass());
gpu_pm.AddPass(::pir::CreateFcWithSpecialOpFusePass());
gpu_pm.AddPass(::pir::CreateFcFusePass());
gpu_pm.AddPass(::pir::CreateFcElementwiseLayerNormFusePass());
gpu_pm.AddPass(::pir::CreateMatmulScaleFusePass());
Expand Down Expand Up @@ -829,7 +827,7 @@ bool AnalysisPredictor::PrepareExecutor() {
gpu_pm.AddPass(::pir::CreateReplaceFetchWithShadowOutputPass());
//----------------------------------------------------------------------------------------------//

// gpu_pm.EnableIRPrinting();
gpu_pm.EnableIRPrinting();
gpu_pm.Run(pir_program_.get());
}

Expand Down
1 change: 0 additions & 1 deletion paddle/fluid/pir/drr/api/match_context.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
#include <string>

#include "paddle/fluid/pir/drr/api/tensor_interface.h"
#include "paddle/fluid/pir/drr/ir_operation.h"

namespace paddle {
namespace drr {
Expand Down
295 changes: 0 additions & 295 deletions paddle/fluid/pir/transforms/fusion/fc_with_special_op_fuse_pass.cc

This file was deleted.

26 changes: 0 additions & 26 deletions paddle/fluid/pir/transforms/fusion/fc_with_special_op_fuse_pass.h

This file was deleted.

2 changes: 0 additions & 2 deletions paddle/fluid/pybind/pir.cc
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@
#include "paddle/fluid/pir/transforms/fusion/conv2d_bn_fuse_pass.h"
#include "paddle/fluid/pir/transforms/fusion/fc_elementwise_layernorm_fuse_pass.h"
#include "paddle/fluid/pir/transforms/fusion/fc_fuse_pass.h"
#include "paddle/fluid/pir/transforms/fusion/fc_with_special_op_fuse_pass.h"
#include "paddle/fluid/pir/transforms/fusion/fused_dot_product_attention_pass.h"
#include "paddle/fluid/pir/transforms/fusion/fused_dropout_add_pass.h"
#include "paddle/fluid/pir/transforms/fusion/fused_gemm_epilogue_pass.h"
Expand Down Expand Up @@ -122,7 +121,6 @@ USE_PIR_PASS(replace_fetch_with_shadow_output_pass);
USE_PIR_PASS(identity_op_clean_pass);
USE_PIR_PASS(matmul_scale_fuse_pass);
USE_PIR_PASS(fc_fuse_pass);
USE_PIR_PASS(fc_with_special_op_fuse_pass);
USE_PIR_PASS(fc_elementwise_layernorm_fuse_pass);
USE_PIR_PASS(conv2d_bn_fuse_pass);
USE_PIR_PASS(conv2d_add_fuse_pass);
Expand Down
Loading

0 comments on commit a8bc26a

Please sign in to comment.