summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJoe Zhao <ztuowen@gmail.com>2014-10-08 16:27:51 +0800
committerJoe Zhao <ztuowen@gmail.com>2014-10-08 16:27:51 +0800
commit6452fac05026fb4eabfed1f608ce6c35be68c803 (patch)
tree9da0f6e2fc490d8e6422179d1579caa29238fcf0 /src
parent408bde7c0c9918940321a90197accd00bc847d2b (diff)
downloadtnet-6452fac05026fb4eabfed1f608ce6c35be68c803.tar.gz
tnet-6452fac05026fb4eabfed1f608ce6c35be68c803.tar.bz2
tnet-6452fac05026fb4eabfed1f608ce6c35be68c803.zip
add getin & get out++
Diffstat (limited to 'src')
-rw-r--r--src/CuTNetLib/cuMisc.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/CuTNetLib/cuMisc.h b/src/CuTNetLib/cuMisc.h
index e0e1f4d..f208a20 100644
--- a/src/CuTNetLib/cuMisc.h
+++ b/src/CuTNetLib/cuMisc.h
@@ -345,7 +345,7 @@ namespace TNet {
void Backpropagate()
{
int loc=0;
- mErrorOutput.Init(GetErrorInput.Rows(),GetNInput());
+ mErrorOutput.Init(GetErrorInput.Rows(),GetNInputs());
for (int i=0;i<size;++i)
{
mErrorOutput.CopyCols(SectLen[i], 0, GetErrorInput(i), loc);
@@ -437,7 +437,7 @@ namespace TNet {
void Propagate()
{
int loc=0;
- mOutput.Init(GetInput.Rows(),GetNOutput());
+ mOutput.Init(GetInput.Rows(),GetNOutputs());
for (int i=0;i<size;++i)
{
mOutput.CopyCols(SectLen[i], 0, GetInput(i), loc);