summaryrefslogtreecommitdiff
path: root/src/CuTNetLib/cuComponent.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/CuTNetLib/cuComponent.h')
-rw-r--r--src/CuTNetLib/cuComponent.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/CuTNetLib/cuComponent.h b/src/CuTNetLib/cuComponent.h
index 110cece..a43680e 100644
--- a/src/CuTNetLib/cuComponent.h
+++ b/src/CuTNetLib/cuComponent.h
@@ -124,7 +124,7 @@ namespace TNet {
virtual int GetOutSect(){return 1;}
/// IO Data getters
- const CuMatrix<BaseFloat>& GetInput(int pos=0) {
+ virtual const CuMatrix<BaseFloat>& GetInput(int pos=0) {
if (NULL == mpInput) Error("mpInput is NULL");
return *mpInput;
}