Skip to content

Commit

Permalink
fix not use ITN, now ITN is must (#2444)
Browse files Browse the repository at this point in the history
Co-authored-by: roney <[email protected]>
  • Loading branch information
roney123 and roney authored Mar 27, 2024
1 parent 32961f5 commit 2c26ae4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 14 deletions.
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

0 comments on commit 2c26ae4

Please sign in to comment.