diff options
author | John Langford <jl@jl-desktop.(none)> | 2011-08-13 19:26:49 +0400 |
---|---|---|
committer | John Langford <jl@jl-desktop.(none)> | 2011-08-13 19:26:49 +0400 |
commit | 717308610a893462cc580a9cd17422a244c7b078 (patch) | |
tree | 9370ba93f00590ee3b2c00f8874ae2b12a20ecaf /parse_regressor.cc | |
parent | dfc0e5d3f47e58525dfe74f1b63a7caa644410f6 (diff) |
Alekh current cluster parallel patch
Diffstat (limited to 'parse_regressor.cc')
-rw-r--r-- | parse_regressor.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/parse_regressor.cc b/parse_regressor.cc index 301f22a7..b0247be3 100644 --- a/parse_regressor.cc +++ b/parse_regressor.cc @@ -82,6 +82,7 @@ void read_vector(const char* file, regressor& r, bool& initialized, bool reg_vec cout << "can't open " << file << endl << " ... exiting." << endl; exit(1); } + size_t v_length; source.read((char*)&v_length, sizeof(v_length)); @@ -243,7 +244,7 @@ void parse_regressor_args(po::variables_map& vm, regressor& r, string& final_reg final_regressor_name = ""; vector<string> regs; - if (vm.count("initial_regressor")) + if (vm.count("initial_regressor") || vm.count("i")) regs = vm["initial_regressor"].as< vector<string> >(); /* |