From e0d5702e82a4e4119c8810bf409b2d0fa676eb0e Mon Sep 17 00:00:00 2001 From: daminglu Date: Wed, 23 May 2018 21:58:06 -0700 Subject: [PATCH] add cmake for word2vec (#10890) --- .../paddle/fluid/tests/book/high-level-api/CMakeLists.txt | 1 + .../tests/book/high-level-api/word2vec/CMakeLists.txt | 7 +++++++ 2 files changed, 8 insertions(+) create mode 100644 python/paddle/fluid/tests/book/high-level-api/word2vec/CMakeLists.txt diff --git a/python/paddle/fluid/tests/book/high-level-api/CMakeLists.txt b/python/paddle/fluid/tests/book/high-level-api/CMakeLists.txt index b5cd5706a7..c1e2656692 100644 --- a/python/paddle/fluid/tests/book/high-level-api/CMakeLists.txt +++ b/python/paddle/fluid/tests/book/high-level-api/CMakeLists.txt @@ -10,4 +10,5 @@ add_subdirectory(fit_a_line) add_subdirectory(recognize_digits) add_subdirectory(image_classification) add_subdirectory(understand_sentiment) +add_subdirectory(word2vec) add_subdirectory(recommender_system) diff --git a/python/paddle/fluid/tests/book/high-level-api/word2vec/CMakeLists.txt b/python/paddle/fluid/tests/book/high-level-api/word2vec/CMakeLists.txt new file mode 100644 index 0000000000..673c965b66 --- /dev/null +++ b/python/paddle/fluid/tests/book/high-level-api/word2vec/CMakeLists.txt @@ -0,0 +1,7 @@ +file(GLOB TEST_OPS RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}" "test_*.py") +string(REPLACE ".py" "" TEST_OPS "${TEST_OPS}") + +# default test +foreach(src ${TEST_OPS}) + py_test(${src} SRCS ${src}.py) +endforeach() -- GitLab