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 'Module.lua')
-rw-r--r--Module.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/Module.lua b/Module.lua
index be7896c..c2075b8 100644
--- a/Module.lua
+++ b/Module.lua
@@ -146,7 +146,7 @@ function Module:getParameters()
if storageAndOffset == nil then
return nil
end
- local _, offset = unpack(storageAndOffset)
+ local _, offset = table.unpack(storageAndOffset)
return offset
end
@@ -200,7 +200,7 @@ function Module:getParameters()
end
for _, storageAndOffset in pairs(storages) do
- local k, v = unpack(storageAndOffset)
+ local k, v = table.unpack(storageAndOffset)
flatParameters[{{v+1,v+k:size()}}]:copy(Tensor():set(k))
end