From db5ac7ded3902653417263afe2e1700fd0299a20 Mon Sep 17 00:00:00 2001 From: moto <855818+mthrok@users.noreply.github.com> Date: Mon, 20 Dec 2021 06:26:11 -0800 Subject: [PATCH] Remove unnecessary sources from KenLM build (#2085) Summary: Pull Request resolved: https://github.com/pytorch/audio/pull/2085 Reviewed By: carolineechen Differential Revision: D33235225 Pulled By: mthrok fbshipit-source-id: 47fe9ec4c93a26322b3a362202ddd3c4654c3f8c --- third_party/kenlm/CMakeLists.txt | 9 --------- torchaudio/csrc/CMakeLists.txt | 11 ----------- 2 files changed, 20 deletions(-) diff --git a/third_party/kenlm/CMakeLists.txt b/third_party/kenlm/CMakeLists.txt index 00aacf27db..e26e0451ea 100644 --- a/third_party/kenlm/CMakeLists.txt +++ b/third_party/kenlm/CMakeLists.txt @@ -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( @@ -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 diff --git a/torchaudio/csrc/CMakeLists.txt b/torchaudio/csrc/CMakeLists.txt index 9c58b08b43..9acdc0fe07 100644 --- a/torchaudio/csrc/CMakeLists.txt +++ b/torchaudio/csrc/CMakeLists.txt @@ -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