Skip to content

Commit

Permalink
fix style
Browse files Browse the repository at this point in the history
  • Loading branch information
SilverSulfide committed Aug 13, 2024
1 parent 5f9441b commit 6e34557
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion sherpa-onnx/csrc/hypothesis.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ struct Hypothesis {
// LM log prob if any.
double lm_log_prob = 0;

// the nn lm score for next token given the current ys, when using shallow fusion
// the nn lm score for next token given the current ys,
// when using shallow fusion
CopyableOrtValue nn_lm_scores;

// cur scored tokens by RNN LM, when rescoring
Expand Down
2 changes: 1 addition & 1 deletion sherpa-onnx/csrc/online-lm-config.cc
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ std::string OnlineLMConfig::ToString() const {
os << "OnlineLMConfig(";
os << "model=\"" << model << "\", ";
os << "scale=" << scale << ", ";
os << "shallow_fusion=\"" << (shallow_fusion ? "True" : "False") << "\")";
os << "shallow_fusion=" << (shallow_fusion ? "True" : "False") << ")";

return os.str();
}
Expand Down

0 comments on commit 6e34557

Please sign in to comment.