Skip to content

Commit

Permalink
Fixed a bug in InvStdDevNode: Account for gaps in sample count
Browse files Browse the repository at this point in the history
  • Loading branch information
amitaga committed Apr 5, 2016
1 parent a6bc80f commit 2584171
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions Source/ComputationNetworkLib/PreComputeNodes.h
Original file line number Diff line number Diff line change
Expand Up @@ -352,11 +352,7 @@ class InvStdDevNode : public MeanInvStdDevNodeBase<ElemType>
// var += (input - mean)^2
var.DoSqrOfDifferenceOf(beta, input, mean, alpha); // this reduces as well

#if 0 // BUGBUG: This is the correct version, but it will break test cases, so do this later. MeanNode does it right already.
m_numSamples += Input(0)->GetMBLayout()->GetActualNumSamples();
#else
m_numSamples += Input(0)->Value().GetNumCols(); // BUGBUG: Should be -> GetActualNumSamples().
#endif
}

virtual void CopyTo(ComputationNodeBasePtr nodeP, const std::wstring& newName, const CopyNodeFlags flags) const override
Expand Down

0 comments on commit 2584171

Please sign in to comment.