From 3974ae86996e500362948f203f9d4fa3adc259f6 Mon Sep 17 00:00:00 2001 From: Joe Zhao Date: Mon, 6 Oct 2014 15:37:59 +0800 Subject: Virtual 7 --- src/CuTNetLib/cuComponent.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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& GetInput(int pos=0) { + virtual const CuMatrix& GetInput(int pos=0) { if (NULL == mpInput) Error("mpInput is NULL"); return *mpInput; } -- cgit v1.2.3-70-g09d2