|
|
|
@ -46,9 +46,6 @@ cc_library(fuse_pass_base SRCS fuse_pass_base.cc DEPS pass)
|
|
|
|
|
pass_library(graph_to_program_pass base)
|
|
|
|
|
pass_library(graph_viz_pass base)
|
|
|
|
|
pass_library(lock_free_optimize_pass base)
|
|
|
|
|
pass_library(cpu_quantize_placement_pass base)
|
|
|
|
|
pass_library(cpu_quantize_pass inference)
|
|
|
|
|
pass_library(cpu_quantize_squash_pass inference)
|
|
|
|
|
pass_library(fc_fuse_pass inference)
|
|
|
|
|
pass_library(attention_lstm_fuse_pass inference)
|
|
|
|
|
pass_library(infer_clean_graph_pass inference)
|
|
|
|
@ -87,6 +84,9 @@ if(WITH_MKLDNN)
|
|
|
|
|
pass_library(conv_bias_mkldnn_fuse_pass inference mkldnn)
|
|
|
|
|
pass_library(conv_relu_mkldnn_fuse_pass inference mkldnn)
|
|
|
|
|
pass_library(conv_elementwise_add_mkldnn_fuse_pass inference mkldnn)
|
|
|
|
|
pass_library(cpu_quantize_placement_pass base mkldnn)
|
|
|
|
|
pass_library(cpu_quantize_pass inference mkldnn)
|
|
|
|
|
pass_library(cpu_quantize_squash_pass inference mkldnn)
|
|
|
|
|
endif()
|
|
|
|
|
|
|
|
|
|
cc_library(fuse_elewise_add_act_pass SRCS fuse_elewise_add_act_pass.cc DEPS pass graph_pattern_detector )
|
|
|
|
@ -105,9 +105,6 @@ cc_test(test_graph_pattern_detector SRCS graph_pattern_detector_tester.cc DEPS g
|
|
|
|
|
cc_test(test_fc_fuse_pass SRCS fc_fuse_pass_tester.cc DEPS fc_fuse_pass framework_proto)
|
|
|
|
|
cc_test(test_seqpool_concat_fuse_pass SRCS seqpool_concat_fuse_pass_tester.cc DEPS seqpool_concat_fuse_pass framework_proto)
|
|
|
|
|
cc_test(test_is_test_pass SRCS is_test_pass_tester.cc DEPS is_test_pass)
|
|
|
|
|
cc_test(test_cpu_quantize_placement_pass SRCS cpu_quantize_placement_pass_tester.cc DEPS cpu_quantize_placement_pass)
|
|
|
|
|
cc_test(test_cpu_quantize_pass SRCS cpu_quantize_pass_tester.cc DEPS cpu_quantize_pass naive_executor)
|
|
|
|
|
cc_test(test_cpu_quantize_squash_pass SRCS cpu_quantize_squash_pass_tester.cc DEPS cpu_quantize_squash_pass naive_executor)
|
|
|
|
|
if(NOT WIN32)
|
|
|
|
|
cc_test(test_sync_batch_norm_pass SRCS sync_batch_norm_pass_tester.cc DEPS sync_batch_norm_pass)
|
|
|
|
|
endif()
|
|
|
|
@ -117,4 +114,7 @@ if (WITH_MKLDNN)
|
|
|
|
|
cc_test(test_conv_relu_mkldnn_fuse_pass SRCS mkldnn/conv_relu_mkldnn_fuse_pass_tester.cc DEPS conv_relu_mkldnn_fuse_pass)
|
|
|
|
|
cc_test(test_conv_elementwise_add_mkldnn_fuse_pass SRCS mkldnn/conv_elementwise_add_mkldnn_fuse_pass_tester.cc DEPS conv_elementwise_add_mkldnn_fuse_pass)
|
|
|
|
|
cc_test(test_mkldnn_placement_pass SRCS mkldnn/mkldnn_placement_pass_tester.cc DEPS mkldnn_placement_pass)
|
|
|
|
|
cc_test(test_cpu_quantize_placement_pass SRCS mkldnn/cpu_quantize_placement_pass_tester.cc DEPS cpu_quantize_placement_pass)
|
|
|
|
|
cc_test(test_cpu_quantize_pass SRCS mkldnn/cpu_quantize_pass_tester.cc DEPS cpu_quantize_pass naive_executor)
|
|
|
|
|
cc_test(test_cpu_quantize_squash_pass SRCS mkldnn/cpu_quantize_squash_pass_tester.cc DEPS cpu_quantize_squash_pass naive_executor)
|
|
|
|
|
endif ()
|
|
|
|
|