From 42402eb04e47e0bf872726c1188ca0fdd199f224 Mon Sep 17 00:00:00 2001 From: koray kavukcuoglu Date: Wed, 10 Jul 2013 15:46:25 +0100 Subject: correct the updateGradInput logic of module. We want to make sure that if a node has only a single child, then we pass whwtever the output of updateGradInput is, else, we select an pass to tthe corresponding child. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'README.md') diff --git a/README.md b/README.md index 6ad0282..f572553 100644 --- a/README.md +++ b/README.md @@ -87,7 +87,7 @@ graph.dot(gmod.fg,'Big MLP') m:add(nn.SplitTable(1)) m:add(nn.ParallelTable():add(nn.Linear(10,20)):add(nn.Linear(10,30))) input = nn.Identity()() - input1,input2 = m(input,2) + input1,input2 = m(input):split(2) m3 = nn.JoinTable(1)({input1,input2}) g = nn.gModule({input},{m3}) -- cgit v1.2.3