diff options
author | Treehugger Robot <treehugger-gerrit@google.com> | 2016-12-07 03:06:38 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2016-12-07 03:06:38 +0000 |
commit | 1226a847e4d067a79843a5acbe59eb3087989552 (patch) | |
tree | add9cc703d778f79c047264542b508d29dbf2de7 | |
parent | df921799727f4dcc9ae11c579c1428cc45444fa6 (diff) | |
parent | df930924bd1c444935d58c0a419a94c4142a4e45 (diff) | |
download | ml-o-preview.tar.gz |
Merge "Fix clang static analyzer warnings."android-o-preview-1android-n-mr2-preview-2android-n-mr2-preview-1o-preview
-rw-r--r-- | bordeaux/learning/stochastic_linear_ranker/jni/jni_stochastic_linear_ranker.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/bordeaux/learning/stochastic_linear_ranker/jni/jni_stochastic_linear_ranker.cpp b/bordeaux/learning/stochastic_linear_ranker/jni/jni_stochastic_linear_ranker.cpp index fd45edaa1..34709e457 100644 --- a/bordeaux/learning/stochastic_linear_ranker/jni/jni_stochastic_linear_ranker.cpp +++ b/bordeaux/learning/stochastic_linear_ranker/jni/jni_stochastic_linear_ranker.cpp @@ -370,16 +370,13 @@ void Java_android_bordeaux_learning_StochasticLinearRanker_nativeGetWeightClassi jobject /* thiz */, jobjectArray key_array_model, jfloatArray value_array_model, - jfloat normalizer, + jfloat /* normalizer */, jlong paPtr) { StochasticLinearRanker<string>* classifier = (StochasticLinearRanker<string>*) paPtr; SparseWeightVector<string> M_weights; classifier->SaveWeights(&M_weights); SparseWeightVector<string>::Wmap w_map = M_weights.GetMap(); - int array_len = w_map.size(); - - normalizer = M_weights.GetNormalizer(); DecomposeSparseWeightVector(env, &key_array_model, &value_array_model, &M_weights); } |