diff options
author | Joe Zhao <ztuowen@gmail.com> | 2014-10-08 16:24:56 +0800 |
---|---|---|
committer | Joe Zhao <ztuowen@gmail.com> | 2014-10-08 16:24:56 +0800 |
commit | 408bde7c0c9918940321a90197accd00bc847d2b (patch) | |
tree | f220d2676e039b002c5ff9bf87040d35585e947a | |
parent | 2689091c8749ec8f2d8099a2c43c7a1fbeecbdf8 (diff) | |
download | tnet-408bde7c0c9918940321a90197accd00bc847d2b.tar.gz tnet-408bde7c0c9918940321a90197accd00bc847d2b.tar.bz2 tnet-408bde7c0c9918940321a90197accd00bc847d2b.zip |
add getin & get out+
-rw-r--r-- | src/CuTNetLib/cuMisc.h | 6 |
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() |