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:
authorJohn Langford <jl@hunch.net>2013-12-01 19:17:44 +0400
committerJohn Langford <jl@hunch.net>2013-12-01 19:17:44 +0400
commitcad95b2c63706f2c3de2ca628750f5359cdc30a1 (patch)
treeaea685e930ac4fc68bf9bdc106a44048de1d7e20
parent5ce2def91f9cd21ea4f427afdd1781cc5034c8e4 (diff)
correctness by removal
-rw-r--r--vowpalwabbit/nn.cc10
1 files changed, 0 insertions, 10 deletions
diff --git a/vowpalwabbit/nn.cc b/vowpalwabbit/nn.cc
index 277689b3..1bb2a690 100644
--- a/vowpalwabbit/nn.cc
+++ b/vowpalwabbit/nn.cc
@@ -63,14 +63,6 @@ namespace NN {
return -1.0f + 2.0f / (1.0f + fastexp (-2.0f * p));
}
- static void
- update_atomics_indices (v_array<feature>& f,
- uint32_t offset)
- {
- for (feature* x = f.begin; x != f.end; ++x)
- x->weight_index += offset;
- }
-
void finish_setup (nn& n, vw& all)
{
bool initialize = true;
@@ -209,7 +201,6 @@ CONVERSE: // That's right, I'm using goto. So sue me.
// nn_output_namespace but at least it will not leak memory
// in that case
- update_atomics_indices (n->output_layer.atomics[nn_output_namespace], -ec->ft_offset);
ec->indices.push_back (nn_output_namespace);
v_array<feature> save_nn_output_namespace = ec->atomics[nn_output_namespace];
ec->atomics[nn_output_namespace] = n->output_layer.atomics[nn_output_namespace];
@@ -222,7 +213,6 @@ CONVERSE: // That's right, I'm using goto. So sue me.
ec->sum_feat_sq[nn_output_namespace] = 0;
ec->atomics[nn_output_namespace] = save_nn_output_namespace;
ec->indices.pop ();
- update_atomics_indices (n->output_layer.atomics[nn_output_namespace], ec->ft_offset);
}
else {
n->output_layer.ld = ec->ld;