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:
Diffstat (limited to 'Copy.lua')
-rw-r--r--Copy.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/Copy.lua b/Copy.lua
index 7b6eeb3..83be6ab 100644
--- a/Copy.lua
+++ b/Copy.lua
@@ -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()