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:
authorPaul Mineiro <paul-github@mineiro.com>2014-01-02 10:59:42 +0400
committerPaul Mineiro <paul-github@mineiro.com>2014-01-02 10:59:42 +0400
commit9a3d6bb199a9ecd0a7c89568f2872706b63f58da (patch)
tree4ae0b292a5649d743fecc1167b8bfd465f66d19f /vowpalwabbit/parse_args.cc
parentbeeb8c061bf8047a36eb0a7b231989448790a875 (diff)
tweak alignment code in parse_args.cc and revert bs test changes
Diffstat (limited to 'vowpalwabbit/parse_args.cc')
-rw-r--r--vowpalwabbit/parse_args.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/vowpalwabbit/parse_args.cc b/vowpalwabbit/parse_args.cc
index 3486baf7..99502cb8 100644
--- a/vowpalwabbit/parse_args.cc
+++ b/vowpalwabbit/parse_args.cc
@@ -953,9 +953,9 @@ vw* parse_args(int argc, char *argv[])
parse_source_args(*all, vm, all->quiet,all->numpasses);
- // force stride * weights_per_problem to be a power of 2 to avoid 32-bit overflow
+ // force wpp to be a power of 2 to avoid 32-bit overflow
uint32_t i = 0;
- size_t params_per_problem = all->l->increment * all->l->weights;
+ size_t params_per_problem = all->l->increment;
while (params_per_problem > (uint32_t)(1 << i))
i++;
all->wpp = (1 << i) / all->reg.stride;