diff options
author | Ivo Danihelka <ivo@danihelka.net> | 2013-02-23 16:58:35 +0400 |
---|---|---|
committer | Ivo Danihelka <ivo@danihelka.net> | 2013-02-23 16:58:35 +0400 |
commit | 30585d8561318de99659b4db7472f6b67a88c033 (patch) | |
tree | 38489e435606314ecf4a5c106835ea55544643f0 /Copy.lua | |
parent | f328917848bf4b05a097445414210e7f9d1effdc (diff) |
Fixed nn.Copy with default arguments.
Diffstat (limited to 'Copy.lua')
-rw-r--r-- | Copy.lua | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,8 +1,8 @@ local Copy, parent = torch.class('nn.Copy', 'nn.Module') function Copy:__init(intype, outtype) - intype = intype or torch.getmetatable(torch.Tensor.__typename) - outtype = outtype or torch.getmetatable(torch.Tensor.__typename) + intype = intype or torch.Tensor.__typename + outtype = outtype or torch.Tensor.__typename parent.__init(self) self.gradInput = torch.getmetatable(intype).new() |