]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - processor-sdk/kaldi.git/commitdiff
[src] Bug-fix in model-collapsing code (thanks: aarora8)
authorDaniel Povey <dpovey@gmail.com>
Fri, 30 Jun 2017 21:14:56 +0000 (17:14 -0400)
committerDaniel Povey <dpovey@gmail.com>
Fri, 30 Jun 2017 21:14:56 +0000 (17:14 -0400)
src/nnet3/nnet-simple-component.cc
src/nnet3/nnet-utils.cc

index 3e589df029b6a541b3b1b5937f8f93d480011bce..09bbf4334e772d68fbc6f9bcdeab729e9e801974 100644 (file)
@@ -5289,8 +5289,8 @@ void BatchNormComponent::ComputeDerived() {
   if (count_ == 0.0) {
     KALDI_WARN << "Test-mode is set but there is no data count.  "
         "Creating random counts.  This only makes sense "
-        "in unit-tests.  If you see this in real life, "
-        "something is very wrong.";
+        "in unit-tests (or compute_prob_*.0.log).  If you see this "
+        "elsewhere, something is very wrong.";
     count_ = 1.0;
     stats_sum_.SetRandn();
     stats_sumsq_.SetRandn();
index 7ec155e074ad100602e4bf2a09cd614f027ccf9a..2450f37baff43f7694b906fbfc11ac6b9d7a35ff 100644 (file)
@@ -1288,7 +1288,7 @@ class ModelCollapser {
       return component_index;
     std::ostringstream os;
     os << nnet_->GetComponentName(component_index)
-       << ":scale" << std::setprecision(3) << scale;
+       << ".scale" << std::setprecision(3) << scale;
     std::string new_component_name = os.str();  // e.g. foo.s2.0
     int32 ans = nnet_->GetComponentIndex(new_component_name);
     if (ans >= 0)