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:
authorNicholas Leonard <nick@nikopia.org>2014-11-27 02:09:39 +0300
committerNicholas Leonard <nick@nikopia.org>2014-11-27 02:09:39 +0300
commitcc7ce5c95ebde85126039eb203fd8e60c628d521 (patch)
tree347b04b3ebbe0735dd3749b8fe4cffb3bb943b53 /Concat.lua
parent70f542492cbde0cf7f16afc915a3b8b674b77bd0 (diff)
nn.Concat.__tostring__() prints torch.type(self)
Diffstat (limited to 'Concat.lua')
-rw-r--r--Concat.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/Concat.lua b/Concat.lua
index 5743af9..c94808d 100644
--- a/Concat.lua
+++ b/Concat.lua
@@ -142,7 +142,7 @@ function Concat:__tostring__()
local ext = ' | '
local extlast = ' '
local last = ' ... -> '
- local str = 'nn.Concat'
+ local str = torch.type(self)
str = str .. ' {' .. line .. tab .. 'input'
for i=1,#self.modules do
if i == self.modules then