Skip to content

Commit

Permalink
test of Backprop change
Browse files Browse the repository at this point in the history
  • Loading branch information
frankseide committed Mar 16, 2016
1 parent b2f9efb commit b499cc9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/ComputationNetworkLib/ComputationNode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ void ComputationNode<ElemType>::Backprop(const FrameRange& fr, bool childrenInTh
// after nodes that propagate outside of the loop, and thus, in the last
// time step of the sequence, have not yet received a gradient from a parent
// and thus may not have had their gradient matrices allocated.
if (m_needsGradient)
LazyZeroGradient(); // set gradient to 0 if this is the first time
//if (m_needsGradient)
// LazyZeroGradient(); // set gradient to 0 if this is the first time

if (fr.IsAllFrames() && IsPartOfLoop() && childrenInThisLoop)
LogicError("%ls %ls operation: Backprop called with whole-batch FrameRange on node that participates in a loop", NodeName().c_str(), OperationName().c_str());
Expand Down

0 comments on commit b499cc9

Please sign in to comment.