summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoe Zhao <ztuowen@gmail.com>2014-10-08 16:24:56 +0800
committerJoe Zhao <ztuowen@gmail.com>2014-10-08 16:24:56 +0800
commit408bde7c0c9918940321a90197accd00bc847d2b (patch)
treef220d2676e039b002c5ff9bf87040d35585e947a
parent2689091c8749ec8f2d8099a2c43c7a1fbeecbdf8 (diff)
downloadtnet-408bde7c0c9918940321a90197accd00bc847d2b.tar.gz
tnet-408bde7c0c9918940321a90197accd00bc847d2b.tar.bz2
tnet-408bde7c0c9918940321a90197accd00bc847d2b.zip
add getin & get out+
-rw-r--r--src/CuTNetLib/cuMisc.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/CuTNetLib/cuMisc.h b/src/CuTNetLib/cuMisc.h
index 10418e5..e0e1f4d 100644
--- a/src/CuTNetLib/cuMisc.h
+++ b/src/CuTNetLib/cuMisc.h
@@ -319,8 +319,8 @@ namespace TNet {
const CuMatrix<BaseFloat>& GetErrorInput(int pos=0)
{
if (pos>=0 && pos<size)
- return *ErrInputVec[pos];
- return *ErrInputVec[0];
+ return *ErrorInputVec[pos];
+ return *ErrorInputVec[0];
}
void SetErrorInput(const CuMatrix<BaseFloat>& rErrorInput,int pos=0)
@@ -328,7 +328,7 @@ namespace TNet {
if (pos==0)
mpErrorInput=&rErrorInput;
if (pos>=0 && pos<size)
- ErrInputVec[pos]=&rErrorInput;
+ ErrorInputVec[pos]=&rErrorInput;
}
void Propagate()