Skip to content

Commit

Permalink
commented out cerr statements in SoftmaxLoss.h
Browse files Browse the repository at this point in the history
  • Loading branch information
vaswani committed May 12, 2015
1 parent 6b51654 commit ffdd679
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/SoftmaxLoss.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,10 @@ struct SoftmaxLogLoss
#pragma omp parallel for reduction(+:log_likelihood)
for (int train_id = 0; train_id < input.cols(); train_id++)
{
//std::cerr<<"output word "<<output_words(train_id)<<std::endl;
//If the output word is negative, that means there was no sample
if (output_words(train_id) == -1){
//std::cerr<<"word is -1"<<std::endl;
continue;
}
double normalization = logsum(input.col(train_id));
Expand Down Expand Up @@ -88,6 +90,7 @@ struct SoftmaxLogLoss
grad_input.col(train_id) -= output.col(train_id).array().exp().matrix();

}
//std::cerr<<"grad input is "<<grad_input<<std::endl;
}
};

Expand Down

0 comments on commit ffdd679

Please sign in to comment.