diff options
-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() |