Skip to content

Commit

Permalink
Remove unnecessary sources from KenLM build (pytorch#2085)
Browse files Browse the repository at this point in the history
Summary: Pull Request resolved: pytorch#2085

Reviewed By: carolineechen

Differential Revision: D33235225

Pulled By: mthrok

fbshipit-source-id: 47fe9ec4c93a26322b3a362202ddd3c4654c3f8c
  • Loading branch information
mthrok authored and facebook-github-bot committed Dec 20, 2021
1 parent 246dd52 commit db5ac7d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 20 deletions.
9 changes: 0 additions & 9 deletions third_party/kenlm/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,11 @@ set(
submodule/util/integer_to_string.cc
submodule/util/mmap.cc
submodule/util/murmur_hash.cc
submodule/util/parallel_read.cc
submodule/util/pool.cc
submodule/util/read_compressed.cc
submodule/util/scoped.cc
submodule/util/spaces.cc
submodule/util/stream/chain.cc
submodule/util/stream/count_records.cc
submodule/util/stream/io.cc
submodule/util/stream/line_input.cc
submodule/util/stream/multi_progress.cc
submodule/util/stream/rewindable_stream.cc
submodule/util/string_piece.cc
submodule/util/usage.cc
)

set(
Expand All @@ -43,7 +35,6 @@ set(
submodule/lm/read_arpa.cc
submodule/lm/search_hashed.cc
submodule/lm/search_trie.cc
submodule/lm/sizes.cc
submodule/lm/trie.cc
submodule/lm/trie_sort.cc
submodule/lm/value_build.cc
Expand Down
11 changes: 0 additions & 11 deletions torchaudio/csrc/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -133,25 +133,14 @@ define_library(
if (BUILD_CTC_DECODER)
set(
LIBTORCHAUDIO_DECODER_SOURCES
decoder/src/decoder/Decoder.h
decoder/src/decoder/LexiconDecoder.cpp
decoder/src/decoder/LexiconDecoder.h
decoder/src/decoder/Trie.cpp
decoder/src/decoder/Trie.h
decoder/src/decoder/Utils.cpp
decoder/src/decoder/Utils.h
decoder/src/decoder/lm/KenLM.cpp
decoder/src/decoder/lm/KenLM.h
decoder/src/decoder/lm/LM.h
decoder/src/dictionary/Defines.h
decoder/src/dictionary/Dictionary.cpp
decoder/src/dictionary/Dictionary.h
decoder/src/dictionary/String.cpp
decoder/src/dictionary/String.h
decoder/src/dictionary/System.cpp
decoder/src/dictionary/System.h
decoder/src/dictionary/Utils.cpp
decoder/src/dictionary/Utils.h
)
set(
LIBTORCHAUDIO_DECODER_DEFINITIONS
Expand Down

0 comments on commit db5ac7d

Please sign in to comment.