Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[runtime] Fixed failed compilation without ITN. Now, compiling ITN is mandatory. #2444

Merged
merged 1 commit into from
Mar 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions runtime/core/post_processor/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
add_library(post_processor STATIC
post_processor.cc
)
if(ITN)
target_link_libraries(post_processor PUBLIC utils wetext_processor wetext_utils)
else()
target_link_libraries(post_processor PUBLIC utils)
endif()
target_link_libraries(post_processor PUBLIC utils wetext_processor wetext_utils)

7 changes: 2 additions & 5 deletions runtime/ipex/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ option(GRPC "whether to build with gRPC" OFF)
option(WEBSOCKET "whether to build with websocket" OFF)
option(HTTP "whether to build with http" OFF)
option(TORCH "whether to build with Torch" ON)
option(ITN "whether to use WeTextProcessing" ON)
option(IPEX "whether to build with Torch+IPEX" ON)

set(CMAKE_VERBOSE_MAKEFILE OFF)
Expand All @@ -31,9 +30,7 @@ include_directories(
${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_CURRENT_SOURCE_DIR}/kaldi
)
if(ITN)
include(wetextprocessing)
endif()
include(wetextprocessing)

# Build all libraries
add_subdirectory(utils)
Expand Down Expand Up @@ -68,4 +65,4 @@ add_subdirectory(bin)
if(BUILD_TESTING)
include(gtest)
add_subdirectory(test)
endif()
endif()
5 changes: 1 addition & 4 deletions runtime/libtorch/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ option(HTTP "whether to build with http" OFF)
option(TORCH "whether to build with Torch" ON)
option(ONNX "whether to build with ONNX" OFF)
option(GPU "whether to build with GPU" OFF)
option(ITN "whether to use WeTextProcessing" ON)

set(CMAKE_CXX_FLAGS_DEBUG "$ENV{CXXFLAGS} -g")
set(CMAKE_VERBOSE_MAKEFILE OFF)
Expand Down Expand Up @@ -48,9 +47,7 @@ include_directories(
${CMAKE_CURRENT_SOURCE_DIR}/kaldi
)

if(ITN)
include(wetextprocessing)
endif()
include(wetextprocessing)

# Build all libraries
add_subdirectory(utils)
Expand Down
Loading