diff options
-rw-r--r-- | vowpalwabbit/gd.cc | 8 |
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); } |