Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/torch/nn.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWen Li Zhuang <wlzhuang@nlg.csie.ntu.edu.tw>2016-05-11 11:55:16 +0300
committerWen Li Zhuang <wlzhuang@nlg.csie.ntu.edu.tw>2016-05-11 11:55:16 +0300
commit2441fc6d5a8fbeecd5abf503866d64ad8224870c (patch)
treefaa288fea2ade62c8e251e76062d20e2cf03b5fa /NarrowTable.lua
parent0614529d6dc5f884bef822314702655a7890f0b3 (diff)
copy clear state from Identity to {NarrowTable,SelectTable}
Diffstat (limited to 'NarrowTable.lua')
-rw-r--r--NarrowTable.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/NarrowTable.lua b/NarrowTable.lua
index 14c90ca..17e06e1 100644
--- a/NarrowTable.lua
+++ b/NarrowTable.lua
@@ -39,3 +39,5 @@ function NarrowTable:type(type, tensorCache)
self.gradInput = {}
return parent.type(self, type, tensorCache)
end
+
+NarrowTable.clearState = nn.Identity.clearState