Skip to content

Commit

Permalink
fixing bug in sum up all inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
jaurora committed Jul 19, 2016
1 parent 276ecc6 commit f269128
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Source/ComputationNetworkLib/NonlinearityNodes.h
Original file line number Diff line number Diff line change
Expand Up @@ -697,6 +697,9 @@ class ElementMaxNode : public ComputationNode<ElemType> // note: not deriving fr
Matrix<ElemType> randomSplit = inputValue.DeepClone();
for (size_t i = 0; i < GetNumInputs(); i++)
{
if (i == inputIndex)
continue;

let input = Input(inputIndex)->ValueFor(fr);
inputSum += input;
}
Expand Down

0 comments on commit f269128

Please sign in to comment.