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/fix] fix style #1924

Merged
merged 1 commit into from
Jul 21, 2023
Merged
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: 3 additions & 3 deletions runtime/core/bin/decoder_main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ std::mutex g_mutex;
int g_total_waves_dur = 0;
int g_total_decode_time = 0;

void decode(std::pair<std::string, std::string> wav, bool warmup = false) {
void Decode(std::pair<std::string, std::string> wav, bool warmup = false) {
wenet::WavReader wav_reader(wav.second);
int num_samples = wav_reader.num_samples();
CHECK_EQ(wav_reader.sample_rate(), FLAGS_sample_rate);
Expand Down Expand Up @@ -164,7 +164,7 @@ int main(int argc, char* argv[]) {
ThreadPool pool(FLAGS_thread_num);
auto wav = waves[0];
for (int i = 0; i < FLAGS_warmup; i++) {
pool.enqueue(decode, wav, true);
pool.enqueue(Decode, wav, true);
}
}
LOG(INFO) << "Warmup done.";
Expand All @@ -173,7 +173,7 @@ int main(int argc, char* argv[]) {
{
ThreadPool pool(FLAGS_thread_num);
for (auto& wav : waves) {
pool.enqueue(decode, wav, false);
pool.enqueue(Decode, wav, false);
}
}

Expand Down