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

github.com/torch/nngraph.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvo Danihelka <ivo@danihelka.net>2013-07-26 19:30:21 +0400
committerIvo Danihelka <ivo@danihelka.net>2013-07-26 19:30:21 +0400
commit9c7e73273738ebb0df36eb0d4a84dfd9c4d010f9 (patch)
tree69aa301312fee0c39420a0f8f4ccd3f393cc4344
parent507d096aa3b3e4d1d4401af1985a4c381f0014e6 (diff)
Implemented custom gModule:type().
-rw-r--r--gmodule.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/gmodule.lua b/gmodule.lua
index 31b0857..4fa1f6f 100644
--- a/gmodule.lua
+++ b/gmodule.lua
@@ -98,6 +98,11 @@ function gModule:apply(func)
end
end
+function gModule:type(type)
+ self:apply(function(module) module:type(type) end)
+ return self
+end
+
function gModule:updateOutput(input)
return self:runForwardFunction('updateOutput',input)
end