Skip to content

Commit 45a16dc

Browse files
remove output from lda native (#5259)
1 parent 091bddf commit 45a16dc

File tree

2 files changed

+0
-30
lines changed

2 files changed

+0
-30
lines changed

src/Native/LdaNative/lda_engine.cpp

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -465,15 +465,6 @@ namespace lda {
465465
if (thread_id == 0)
466466
{
467467
double seconds_this_iter = iter_end - iter_start;
468-
469-
printf("Iter: %04d", iter);
470-
std::cout
471-
<< "\tThread = " << thread_id
472-
<< "\tTokens: " << atomic_stats_->num_tokens_clock_
473-
<< "\tTook: " << seconds_this_iter << " sec"
474-
<< "\tThroughput: "
475-
<< static_cast<double>(atomic_stats_->num_tokens_clock_) / (seconds_this_iter) << " token/(thread*sec)"
476-
<< std::endl;
477468
}
478469
process_barrier_->wait();
479470
CheckFunction(thread_id, tmDebug, "train(gibbs sampling) - in function train_thread");
@@ -618,16 +609,6 @@ namespace lda {
618609
if (thread_id == 0)
619610
{
620611
double seconds_this_iter = iter_end - iter_start;
621-
622-
printf("Iter: %04d", iter);
623-
std::cout
624-
<< "\tThread = " << thread_id
625-
<< "\tTokens: " << atomic_stats_->num_tokens_clock_
626-
<< "\tTook: " << seconds_this_iter << " sec"
627-
<< "\tThroughput: "
628-
<< static_cast<double>(atomic_stats_->num_tokens_clock_) / (seconds_this_iter) << " token/(thread*sec)"
629-
<< std::endl;
630-
631612
}
632613

633614
process_barrier_->wait();
@@ -952,11 +933,6 @@ namespace lda {
952933
{
953934
likelihood_in_iter_[iter] = (float)total_ll;
954935
}
955-
956-
std::cout << "Total likelihood: " << total_ll << "\t";
957-
std::cout << "..........[Nomralized word ll: " << normalized_ll << "\t"
958-
<< "Word likelihood: " << atomic_stats_->word_ll_ << "\t"
959-
<< "Doc likelihood: " << atomic_stats_->doc_ll_ << "]" << std::endl;
960936
}
961937
process_barrier_->wait();
962938

src/Native/LdaNative/model_block.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -138,9 +138,6 @@ namespace lda
138138
alias_mem_block_size_ = static_cast<size_t>(alias_mem_block_size);
139139
alias_mem_block_ = new int32_t[alias_mem_block_size_](); //NOTE: force to initialize the values to be zero
140140

141-
cout << "mem_block_size = " << sizeof(mem_block_size_) << endl;
142-
cout << "alias_mem_block_size = " << sizeof(alias_mem_block_size_)<< endl;
143-
144141
offset_ = 0;
145142
alias_offset_ = 0;
146143
}
@@ -348,9 +345,6 @@ namespace lda
348345
throw bad_alloc();
349346
alias_mem_block_size_ = static_cast<size_t>(size);
350347
alias_mem_block_ = new int32_t[alias_mem_block_size_](); //NOTE: force to initialize the values to be zero
351-
352-
cout << "mem_block_size = " << sizeof(mem_block_size_) << endl;
353-
cout << "alias_mem_block_size = " << sizeof(alias_mem_block_size_) << endl;
354348
}
355349

356350
void LDAModelBlock::InitFromDataBlock(const LDADataBlock &data_block, int32_t num_vocabs, int32_t num_topics)

0 commit comments

Comments
 (0)