Skip to content

Conversation

@mthrok
Copy link
Contributor

@mthrok mthrok commented Dec 17, 2021

After all the C++ code from #2072 are added, this commit will enable decoder/KenLM integration in the build process.

@mthrok mthrok force-pushed the decoder-integration branch from 60d932f to 2243480 Compare December 17, 2021 22:41
@mthrok mthrok requested a review from carolineechen December 17, 2021 22:41
@mthrok mthrok marked this pull request as ready for review December 17, 2021 22:41
@facebook-github-bot
Copy link
Contributor

@mthrok has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@facebook-github-bot
Copy link
Contributor

@mthrok has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

)
endif()

# TODO: Add libtorchaudio_decoder
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what is necessary for adding libtorchaudio_decoder?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The definition of TORCHAUDIO_LIBRARY that is expected to be used from C++ integration via CMake. To make the decoder available in C++, we need to add libtorchaudio_decoder to it. However, the current way is not entirely correct, so we need to revise it.

if (BUILD_CTC_DECODER)
set(
LIBTORCHAUDIO_DECODER_SOURCES
decoder/src/decoder/Decoder.h
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we should be able to remove the .h header files from this list

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for pointing. Let me follow-up on this in the subsequent PR so that I can land this without alerting the fbcode's change-after-approve system during the weekend.

@mthrok mthrok deleted the decoder-integration branch December 18, 2021 19:25
xiaohui-zhang pushed a commit to xiaohui-zhang/audio that referenced this pull request May 4, 2022
Summary:
After all the C++ code from pytorch#2072 are added, this commit will enable decoder/KenLM integration in the build process.

Pull Request resolved: pytorch#2078

Reviewed By: carolineechen

Differential Revision: D33198183

Pulled By: mthrok

fbshipit-source-id: 9d7fa76151d06fbbac3785183c7c2ff9862d3128
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants