summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoe Zhao <ztuowen@gmail.com>2014-10-06 22:39:05 +0800
committerJoe Zhao <ztuowen@gmail.com>2014-10-06 22:39:05 +0800
commit84c51bec05a64b4c3b7be2f68d80d23e6804ed07 (patch)
tree45b7a344c6f328ddb938bb7776dec5c11ad4c3ed
parentddd98a87c18c59929c48d109dbc188b35a86ffcd (diff)
downloadtnet-84c51bec05a64b4c3b7be2f68d80d23e6804ed07.tar.gz
tnet-84c51bec05a64b4c3b7be2f68d80d23e6804ed07.tar.bz2
tnet-84c51bec05a64b4c3b7be2f68d80d23e6804ed07.zip
Virtual 9+++++++++++++++
-rw-r--r--src/CuTNetLib/cuCompDisc.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/CuTNetLib/cuCompDisc.cc b/src/CuTNetLib/cuCompDisc.cc
index 55c34a9..9eb08a9 100644
--- a/src/CuTNetLib/cuCompDisc.cc
+++ b/src/CuTNetLib/cuCompDisc.cc
@@ -17,6 +17,7 @@ namespace TNet
mBlocks[inID[i].block]->SetInput(GetInput(i),inID[i].pos);
for (int i=0; i<mBlocks.size(); i++)
mBlocks[i]->Propagate();
+ mErrorOutput.Init(GetOutput());
}
void
@@ -34,6 +35,7 @@ namespace TNet
mBlocks[outID[i].block]->SetErrorInput(GetOutput(i),outID[i].pos);
for(int i=0; i<mBlocks.size(); i++)
mBlocks[i]->Backpropagate();
+ mOutput.Init(GetOutput());
}
void