paddle_use_passes.h 3.0 KB
Newer Older
Y
Yan Chunwei 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
// Copyright (c) 2019 PaddlePaddle Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//     http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

#pragma once
#include "paddle_lite_factory_helper.h"  // NOLINT

USE_MIR_PASS(demo);
USE_MIR_PASS(static_kernel_pick_pass);
USE_MIR_PASS(variable_place_inference_pass);
USE_MIR_PASS(type_target_cast_pass);
USE_MIR_PASS(generate_program_pass);

USE_MIR_PASS(io_copy_kernel_pick_pass);
USE_MIR_PASS(argument_type_display_pass);
USE_MIR_PASS(runtime_context_assign_pass);
27
USE_MIR_PASS(graph_visualize_pass);
Y
Yan Chunwei 已提交
28

29
USE_MIR_PASS(remove_tf_redundant_ops_pass);
Y
Yan Chunwei 已提交
30
USE_MIR_PASS(lite_conv_bn_fuse_pass);
H
HappyAngel 已提交
31
USE_MIR_PASS(lite_conv_conv_fuse_pass);
Y
Yan Chunwei 已提交
32
USE_MIR_PASS(lite_fc_fuse_pass);
33
USE_MIR_PASS(lite_shuffle_channel_fuse_pass);
34
USE_MIR_PASS(lite_transpose_softmax_transpose_fuse_pass);
Z
zhupengyang 已提交
35
USE_MIR_PASS(lite_interpolate_fuse_pass);
36
USE_MIR_PASS(lite_sequence_pool_concat_fuse_pass);
Y
Yan Chunwei 已提交
37
USE_MIR_PASS(identity_scale_eliminate_pass);
C
Cwndmiao 已提交
38
USE_MIR_PASS(identity_dropout_eliminate_pass);
Y
Yan Chunwei 已提交
39 40
USE_MIR_PASS(lite_conv_elementwise_fuse_pass);
USE_MIR_PASS(lite_conv_activation_fuse_pass);
41
USE_MIR_PASS(lite_var_conv_2d_activation_fuse_pass);
W
Wilber 已提交
42
USE_MIR_PASS(lite_match_matrix_activation_fuse_pass);
W
Wilber 已提交
43
USE_MIR_PASS(lite_scales_fuse_pass);
44
USE_MIR_PASS(lite_sequence_reverse_embedding_fuse_pass);
45
USE_MIR_PASS(lite_elementwise_activation_fuse_pass);
Y
Yan Chunwei 已提交
46 47 48
USE_MIR_PASS(lite_quant_dequant_fuse_pass);
USE_MIR_PASS(type_precision_cast_pass);
USE_MIR_PASS(type_layout_cast_pass);
H
huzhiqiang 已提交
49
USE_MIR_PASS(type_layout_cast_preprocess_pass);
50
USE_MIR_PASS(memory_optimize_pass);
51
USE_MIR_PASS(lite_reshape_fuse_pass);
52
USE_MIR_PASS(multi_stream_analysis_pass);
H
HappyAngel 已提交
53
USE_MIR_PASS(elementwise_mul_constant_eliminate_pass)
54
USE_MIR_PASS(npu_subgraph_pass);
55
USE_MIR_PASS(huawei_ascend_npu_subgraph_pass);
56
USE_MIR_PASS(xpu_subgraph_pass);
57 58
USE_MIR_PASS(mlu_subgraph_pass);
USE_MIR_PASS(mlu_postprocess_pass);
J
juncaipeng 已提交
59
USE_MIR_PASS(weight_quantization_preprocess_pass);
H
hong19860320 已提交
60
USE_MIR_PASS(apu_subgraph_pass);
61
USE_MIR_PASS(quantized_op_attributes_inference_pass);
62
USE_MIR_PASS(control_flow_op_unused_inputs_and_outputs_eliminate_pass)
63
USE_MIR_PASS(lite_scale_activation_fuse_pass);
64
USE_MIR_PASS(__xpu__resnet_fuse_pass);
W
weihaoji 已提交
65
USE_MIR_PASS(__xpu__resnet_d_fuse_pass);
66
USE_MIR_PASS(__xpu__resnet_cbam_fuse_pass);
67
USE_MIR_PASS(__xpu__multi_encoder_fuse_pass);
C
Cwndmiao 已提交
68 69
USE_MIR_PASS(__xpu__embedding_with_eltwise_add_fuse_pass);
USE_MIR_PASS(__xpu__fc_fuse_pass);
70
USE_MIR_PASS(__xpu__mmdnn_fuse_pass);
71 72 73 74
USE_MIR_PASS(__xpu__conv2d_fuse_pass);
USE_MIR_PASS(__xpu__conv2d_link_previous_out_max_pass);
USE_MIR_PASS(__xpu__sfa_head_meanstd_fuse_pass);
USE_MIR_PASS(__xpu__sfa_head_moment_fuse_pass);