CMakeLists.txt 2.6 KB
Newer Older
Y
Yan Chunwei 已提交
1
# Add TRT tests
2
nv_library(tensorrt_converter
N
nhzlx 已提交
3
  SRCS mul_op.cc conv2d_op.cc fc_op.cc pool2d_op.cc elementwise_op.cc
4
batch_norm_op.cc activation_op.cc softmax_op.cc concat_op.cc dropout_op.cc
5
pad_op.cc split_op.cc prelu_op.cc
N
nhzlx 已提交
6
  DEPS tensorrt_engine tensorrt_plugin operator scope framework_proto op_registry)
7 8

nv_test(test_op_converter SRCS test_op_converter.cc DEPS
W
Wu Yi 已提交
9
  ${FLUID_CORE_MODULES} ${GLOB_OPERATOR_DEPS} tensorrt_engine tensorrt_converter)
10

L
Luo Tao 已提交
11
nv_test(test_io_converter SRCS test_io_converter.cc io_converter.cc DEPS dynload_cuda dynamic_loader lod_tensor)
Y
Yan Chunwei 已提交
12
nv_test(test_trt_mul_op SRCS test_mul_op.cc mul_op.cc
W
Wu Yi 已提交
13
        DEPS ${FLUID_CORE_MODULES} ${GLOB_OPERATOR_DEPS} tensorrt_engine mul_op SERIAL)
14
nv_test(test_trt_fc_op SRCS test_fc_op.cc fc_op.cc
W
Wu Yi 已提交
15
        DEPS ${FLUID_CORE_MODULES} ${GLOB_OPERATOR_DEPS} tensorrt_engine mul_op SERIAL)
L
Luo Tao 已提交
16
nv_test(test_trt_activation_op SRCS test_activation_op.cc activation_op.cc
W
Wu Yi 已提交
17
        DEPS ${FLUID_CORE_MODULES} ${GLOB_OPERATOR_DEPS} tensorrt_engine activation_op SERIAL)
N
nhzlx 已提交
18
nv_test(test_trt_conv_op SRCS test_conv2d_op.cc conv2d_op.cc
W
Wu Yi 已提交
19
        DEPS ${FLUID_CORE_MODULES} ${GLOB_OPERATOR_DEPS} tensorrt_engine conv_op conv_transpose_op SERIAL)
N
nhzlx 已提交
20
nv_test(test_trt_pool2d_op SRCS test_pool2d_op.cc pool2d_op.cc
W
Wu Yi 已提交
21
        DEPS ${FLUID_CORE_MODULES} ${GLOB_OPERATOR_DEPS} tensorrt_engine pool_op SERIAL)
N
nhzlx 已提交
22
nv_test(test_trt_elementwise_op SRCS test_elementwise_op.cc elementwise_op.cc
W
Wu Yi 已提交
23
        DEPS ${FLUID_CORE_MODULES} ${GLOB_OPERATOR_DEPS} tensorrt_engine elementwise_add_op SERIAL)
N
nhzlx 已提交
24
nv_test(test_trt_softmax_op SRCS test_softmax_op.cc softmax_op.cc
W
Wu Yi 已提交
25
        DEPS ${FLUID_CORE_MODULES} ${GLOB_OPERATOR_DEPS} tensorrt_engine softmax_op SERIAL)
N
nhzlx 已提交
26
nv_test(test_trt_batch_norm_op SRCS test_batch_norm_op.cc batch_norm_op.cc
W
Wu Yi 已提交
27
        DEPS ${FLUID_CORE_MODULES} ${GLOB_OPERATOR_DEPS} tensorrt_engine batch_norm_op SERIAL)
N
nhzlx 已提交
28
nv_test(test_trt_concat_op SRCS test_concat_op.cc concat_op.cc
W
Wu Yi 已提交
29
        DEPS ${FLUID_CORE_MODULES} ${GLOB_OPERATOR_DEPS} tensorrt_engine concat_op SERIAL)
N
nhzlx 已提交
30
nv_test(test_trt_dropout_op SRCS test_dropout_op.cc dropout_op.cc
W
Wu Yi 已提交
31
        DEPS ${FLUID_CORE_MODULES} ${GLOB_OPERATOR_DEPS} tensorrt_engine dropout_op SERIAL)
N
nhzlx 已提交
32
nv_test(test_trt_pad_op SRCS test_pad_op.cc pad_op.cc
W
Wu Yi 已提交
33
        DEPS ${FLUID_CORE_MODULES} ${GLOB_OPERATOR_DEPS} tensorrt_engine pad_op SERIAL)
34
nv_test(test_trt_split_op SRCS test_split_op.cc split_op.cc
W
Wu Yi 已提交
35
        DEPS ${FLUID_CORE_MODULES} ${GLOB_OPERATOR_DEPS} tensorrt_engine tensorrt_plugin
36 37
        split_op concat_op SERIAL)
nv_test(test_trt_prelu_op SRCS test_prelu_op.cc prelu_op.cc
W
Wu Yi 已提交
38
        DEPS ${FLUID_CORE_MODULES} ${GLOB_OPERATOR_DEPS} tensorrt_engine tensorrt_plugin
39
        prelu_op SERIAL)