aboutsummaryrefslogtreecommitdiff
path: root/nerv/nn
diff options
context:
space:
mode:
authorDeterminant <ted.sybil@gmail.com>2016-03-17 13:32:06 +0800
committerDeterminant <ted.sybil@gmail.com>2016-03-17 13:32:06 +0800
commit49d62c459c27791b08fff318f4b70958fc4e6542 (patch)
treef4dadb6cb351b76bbc8df177a0a1e6783c3ed68c /nerv/nn
parent941a3a6ee81587568a7f8e7458e5c5f9a8595342 (diff)
adjust the parameter order of methods from ParamRepo
Diffstat (limited to 'nerv/nn')
-rw-r--r--nerv/nn/param_repo.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/nerv/nn/param_repo.lua b/nerv/nn/param_repo.lua
index aba7765..1e7a366 100644
--- a/nerv/nn/param_repo.lua
+++ b/nerv/nn/param_repo.lua
@@ -65,7 +65,7 @@ function ParamRepo.merge(repos, loc_type)
return self
end
-function ParamRepo:import(param_files, pids, gconf)
+function ParamRepo:import(param_files, gconf, pids)
if type(param_files) ~= "table" then
nerv.error("param file table is need")
end
@@ -109,7 +109,7 @@ function ParamRepo:get_param(pid)
return p
end
-function ParamRepo:copy(loc_type, pids)
+function ParamRepo:copy(loc_type, gconf, pids)
local copier
local target = nerv.ParamRepo(nil, loc_type)
if loc_type == nil then