Skip to content

Commit e0d5702

Browse files
authored
add cmake for word2vec (#10890)
1 parent b1d4468 commit e0d5702

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

python/paddle/fluid/tests/book/high-level-api/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,5 @@ add_subdirectory(fit_a_line)
1010
add_subdirectory(recognize_digits)
1111
add_subdirectory(image_classification)
1212
add_subdirectory(understand_sentiment)
13+
add_subdirectory(word2vec)
1314
add_subdirectory(recommender_system)
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
file(GLOB TEST_OPS RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}" "test_*.py")
2+
string(REPLACE ".py" "" TEST_OPS "${TEST_OPS}")
3+
4+
# default test
5+
foreach(src ${TEST_OPS})
6+
py_test(${src} SRCS ${src}.py)
7+
endforeach()

0 commit comments

Comments
 (0)