Author: tommaso
Date: Wed Oct 19 05:32:22 2016
New Revision: 1765532

URL: http://svn.apache.org/viewvc?rev=1765532&view=rev
Log:
minor fixes

Modified:
    labs/yay/trunk/core/src/main/java/org/apache/yay/StackedRNN.java

Modified: labs/yay/trunk/core/src/main/java/org/apache/yay/StackedRNN.java
URL: 
http://svn.apache.org/viewvc/labs/yay/trunk/core/src/main/java/org/apache/yay/StackedRNN.java?rev=1765532&r1=1765531&r2=1765532&view=diff
==============================================================================
--- labs/yay/trunk/core/src/main/java/org/apache/yay/StackedRNN.java (original)
+++ labs/yay/trunk/core/src/main/java/org/apache/yay/StackedRNN.java Wed Oct 19 
05:32:22 2016
@@ -181,7 +181,7 @@ public class StackedRNN extends RNN {
     Nd4j.copy(hPrev, hs1);
 
     INDArray hs12 = Nd4j.create(hPrev2.shape());
-    Nd4j.copy(hPrev2, hs1);
+    Nd4j.copy(hPrev2, hs12);
 
     double loss = 0;
 
@@ -280,7 +280,6 @@ public class StackedRNN extends RNN {
       dWhh.addi(dhraw.mmul(hsRow.transpose()));
       dhNext = whh.transpose().mmul(dhraw);
 
-
     }
     // clip exploding gradients
     Nd4j.getExecutioner().execAndReturn(new SetRange(dWxh, -5, 5));



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@labs.apache.org
For additional commands, e-mail: commits-h...@labs.apache.org

Reply via email to