CMakeLists.txt 1.7 KB
Newer Older
L
Liu Yiqun 已提交
1
set(PYTHON_TESTS_DIR ${PADDLE_SOURCE_DIR}/python/paddle/v2/fluid/tests)
2 3 4 5
cc_test(test_inference_recognize_digits_mlp
    SRCS test_inference_recognize_digits.cc
    DEPS ARCHIVE_START paddle_fluid ARCHIVE_END
    ARGS --dirname=${PYTHON_TESTS_DIR}/book/recognize_digits_mlp.inference.model)
6 7 8 9 10 11 12 13
cc_test(test_inference_image_classification_vgg
    SRCS test_inference_image_classification.cc
    DEPS ARCHIVE_START paddle_fluid ARCHIVE_END
    ARGS --dirname=${PYTHON_TESTS_DIR}/book/image_classification_vgg.inference.model)
cc_test(test_inference_image_classification_resnet
    SRCS test_inference_image_classification.cc
    DEPS ARCHIVE_START paddle_fluid ARCHIVE_END
    ARGS --dirname=${PYTHON_TESTS_DIR}/book/image_classification_resnet.inference.model)
14 15 16 17
cc_test(test_inference_label_semantic_roles
    SRCS test_inference_label_semantic_roles.cc
    DEPS ARCHIVE_START paddle_fluid ARCHIVE_END
    ARGS --dirname=${PYTHON_TESTS_DIR}/book/label_semantic_roles.inference.model)
18 19 20 21
cc_test(test_inference_rnn_encoder_decoder
    SRCS test_inference_rnn_encoder_decoder.cc
    DEPS ARCHIVE_START paddle_fluid ARCHIVE_END
    ARGS --dirname=${PYTHON_TESTS_DIR}/book/rnn_encoder_decoder.inference.model)
L
Liu Yiqun 已提交
22
set_tests_properties(test_inference_recognize_digits_mlp
23
    PROPERTIES DEPENDS test_recognize_digits)
24 25 26 27
set_tests_properties(test_inference_image_classification_vgg
    PROPERTIES DEPENDS test_image_classification_train)
set_tests_properties(test_inference_image_classification_resnet
    PROPERTIES DEPENDS test_image_classification_train)
28 29
set_tests_properties(test_inference_label_semantic_roles
    PROPERTIES DEPENDS test_label_semantic_roles) 
30 31
set_tests_properties(test_inference_rnn_encoder_decoder
    PROPERTIES DEPENDS test_rnn_encoder_decoder)