From 35cb4efd82be9c7acdf89ee99ee138a283de23e4 Mon Sep 17 00:00:00 2001 From: Daniel Povey Date: Mon, 31 Oct 2016 23:28:52 -0400 Subject: [PATCH] Fix small bug in nnet3 (relates to printing of a warning message) --- src/nnet3/nnet-nnet.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nnet3/nnet-nnet.cc b/src/nnet3/nnet-nnet.cc index c84df89177d..af2147147d7 100644 --- a/src/nnet3/nnet-nnet.cc +++ b/src/nnet3/nnet-nnet.cc @@ -744,7 +744,7 @@ void Nnet::Check(bool warn_for_orphans) const { } FindOrphanNodes(*this, &orphans); for (size_t i = 0; i < orphans.size(); i++) { - if (!IsComponentInputNode(i)) { + if (!IsComponentInputNode(orphans[i])) { // There is no point warning about component-input nodes, since the // warning will be printed for the corresponding component nodes.. a // duplicate warning might be confusing to the user, as the