CMakeLists.txt 3.3 KB
Newer Older
Y
Yan Chunwei 已提交
1
# Add TRT tests
2
nv_library(tensorrt_converter
3 4
           SRCS mul_op.cc conv2d_op.cc fc_op.cc pool2d_op.cc elementwise_op.cc
                batch_norm_op.cc activation_op.cc softmax_op.cc concat_op.cc dropout_op.cc
P
Pei Yang 已提交
5
                pad_op.cc split_op.cc prelu_op.cc leaky_relu_op.cc gelu_op.cc layer_norm_op.cc multihead_matmul_op.cc
6
                shuffle_channel_op.cc swish_op.cc instance_norm_op.cc emb_eltwise_layernorm.cc skip_layernorm.cc hard_sigmoid_op.cc hard_swish_op.cc
7
           DEPS tensorrt_engine tensorrt_plugin operator scope framework_proto op_registry)
8 9

nv_test(test_op_converter SRCS test_op_converter.cc DEPS
10
  paddle_framework ${GLOB_OPERATOR_DEPS} tensorrt_engine tensorrt_converter)
11

12 13 14 15
# TODO(xingzhaolong): fix the the following ci ut error.

#nv_test(test_io_converter SRCS test_io_converter.cc io_converter.cc DEPS dynload_cuda dynamic_loader lod_tensor)
#nv_test(test_trt_mul_op SRCS test_mul_op.cc mul_op.cc
16
#        DEPS paddle_framework ${GLOB_OPERATOR_DEPS} tensorrt_engine mul_op)
17
#nv_test(test_trt_fc_op SRCS test_fc_op.cc fc_op.cc
18
#        DEPS paddle_framework ${GLOB_OPERATOR_DEPS} tensorrt_engine mul_op)
19
#nv_test(test_trt_activation_op SRCS test_activation_op.cc activation_op.cc
20
#        DEPS paddle_framework ${GLOB_OPERATOR_DEPS} tensorrt_engine activation_op)
21
#nv_test(test_trt_conv_op SRCS test_conv2d_op.cc conv2d_op.cc
22
#        DEPS paddle_framework ${GLOB_OPERATOR_DEPS} tensorrt_engine conv_op conv_transpose_op)
23
#nv_test(test_trt_pool2d_op SRCS test_pool2d_op.cc pool2d_op.cc
24
#        DEPS paddle_framework ${GLOB_OPERATOR_DEPS} tensorrt_engine pool_op tensorrt_plugin)
25
#nv_test(test_trt_elementwise_op SRCS test_elementwise_op.cc elementwise_op.cc
26
#        DEPS paddle_framework ${GLOB_OPERATOR_DEPS} tensorrt_engine tensorrt_plugin
27 28
#             elementwise_add_op elementwise_mul_op)
#nv_test(test_trt_softmax_op SRCS test_softmax_op.cc softmax_op.cc
29
#        DEPS paddle_framework ${GLOB_OPERATOR_DEPS} tensorrt_engine softmax_op)
30
#nv_test(test_trt_batch_norm_op SRCS test_batch_norm_op.cc batch_norm_op.cc
31
#        DEPS paddle_framework ${GLOB_OPERATOR_DEPS} tensorrt_engine batch_norm_op)
32
#nv_test(test_trt_concat_op SRCS test_concat_op.cc concat_op.cc
33
#        DEPS paddle_framework ${GLOB_OPERATOR_DEPS} tensorrt_engine concat_op)
34
#nv_test(test_trt_dropout_op SRCS test_dropout_op.cc dropout_op.cc
35
#        DEPS paddle_framework ${GLOB_OPERATOR_DEPS} tensorrt_engine dropout_op)
36
#nv_test(test_trt_pad_op SRCS test_pad_op.cc pad_op.cc
37
#        DEPS paddle_framework ${GLOB_OPERATOR_DEPS} tensorrt_engine pad_op)
38
#nv_test(test_trt_split_op SRCS test_split_op.cc split_op.cc
39
#        DEPS paddle_framework ${GLOB_OPERATOR_DEPS} tensorrt_engine tensorrt_plugin
40 41
#             split_op concat_op)
#nv_test(test_trt_prelu_op SRCS test_prelu_op.cc prelu_op.cc
42
#        DEPS paddle_framework ${GLOB_OPERATOR_DEPS} tensorrt_engine tensorrt_plugin
43 44
#        prelu_op)
#nv_test(test_trt_leaky_relu_op SRCS test_leaky_relu_op.cc leaky_relu_op.cc
45
#        DEPS paddle_framework ${GLOB_OPERATOR_DEPS} tensorrt_engine activation_op)
46 47

#nv_test(test_shuffle_channel_op SRCS test_shuffle_channel_op.cc shuffle_channel_op.cc
48
#        DEPS paddle_framework ${GLOB_OPERATOR_DEPS} tensorrt_engine shuffle_channel_op)
49 50

#nv_test(test_swish_op SRCS test_swish_op.cc swish_op.cc
51
#        DEPS paddle_framework ${GLOB_OPERATOR_DEPS} tensorrt_engine activation_op tensorrt_plugin)