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 d6b16fb..fce5790 100644
--- a/Module.lua
+++ b/Module.lua
@@ -157,7 +157,7 @@ function Module:getParameters()
if storageAndOffset == nil then
return nil
end
- local _, offset = unpack(storageAndOffset)
+ local _, offset = table.unpack(storageAndOffset)
return offset
end
@@ -211,7 +211,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