summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoe Zhao <ztuowen@gmail.com>2014-10-08 16:40:15 +0800
committerJoe Zhao <ztuowen@gmail.com>2014-10-08 16:40:15 +0800
commit65fdf7d0ffa877941cc00ed289af7d4902cdb465 (patch)
treec0369d595829306575f352f568aff34e82225f5d
parent6452fac05026fb4eabfed1f608ce6c35be68c803 (diff)
downloadtnet-65fdf7d0ffa877941cc00ed289af7d4902cdb465.tar.gz
tnet-65fdf7d0ffa877941cc00ed289af7d4902cdb465.tar.bz2
tnet-65fdf7d0ffa877941cc00ed289af7d4902cdb465.zip
add getin & get out+++
-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 f208a20..207b210 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(),GetNInputs());
+ 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(),GetNOutputs());
+ mOutput.Init(GetInput().Rows(),GetNOutputs());
for (int i=0;i<size;++i)
{
mOutput.CopyCols(SectLen[i], 0, GetInput(i), loc);