Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/moses-smt/vowpal_wabbit.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaulius Klyvis <paulius.klyvis@adform.com>2014-12-04 19:50:54 +0300
committerPaulius Klyvis <paulius.klyvis@adform.com>2014-12-04 19:50:54 +0300
commit3735d95919c80ba105e014eafe269ffeabea207f (patch)
tree5edd5327a8d88423ad9b29da785388fada1b04d0 /vowpalwabbit
parentbed808b8ef6c00d6b65ff540be24199eb38721bb (diff)
changed argument type in save_load_online_state
Diffstat (limited to 'vowpalwabbit')
-rw-r--r--vowpalwabbit/gd.cc8
1 files changed, 5 insertions, 3 deletions
diff --git a/vowpalwabbit/gd.cc b/vowpalwabbit/gd.cc
index e1924c02..32141084 100644
--- a/vowpalwabbit/gd.cc
+++ b/vowpalwabbit/gd.cc
@@ -606,9 +606,10 @@ void save_load_regressor(vw& all, io_buf& model_file, bool read, bool text)
while ((!read && i < length) || (read && brw >0));
}
-void save_load_online_state(gd& g, io_buf& model_file, bool read, bool text)
+//void save_load_online_state(gd& g, io_buf& model_file, bool read, bool text)
+void save_load_online_state(vw& all, io_buf& model_file, bool read, bool text)
{
- vw& all = *g.all;
+ //vw& all = *g.all;
char buff[512];
@@ -777,7 +778,8 @@ void save_load(gd& g, io_buf& model_file, bool read, bool text)
"", read,
buff, text_len, text);
if (resume)
- save_load_online_state(g, model_file, read, text);
+ //save_load_online_state(g, model_file, read, text);
+ save_load_online_state(all, model_file, read, text);
else
save_load_regressor(all, model_file, read, text);
}