diff options
Diffstat (limited to 'Module.lua')
-rw-r--r-- | Module.lua | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |