summaryrefslogtreecommitdiff
path: root/training/dtrain/score_net_interface.h
diff options
context:
space:
mode:
authorPatrick Simianer <p@simianer.de>2015-06-24 18:51:21 +0200
committerPatrick Simianer <p@simianer.de>2015-06-24 18:51:21 +0200
commit723cbf8d543ba8be2880b497518c87fc1cbf3573 (patch)
tree6e1e4591371f879995f042ff669b93dd7a37106b /training/dtrain/score_net_interface.h
parent47ed3381713f0e0e375dd6087bbd507ee22bf7cc (diff)
dtrain_net_interace: cleanup
Diffstat (limited to 'training/dtrain/score_net_interface.h')
-rw-r--r--training/dtrain/score_net_interface.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/training/dtrain/score_net_interface.h b/training/dtrain/score_net_interface.h
index 6e359249..58357cf6 100644
--- a/training/dtrain/score_net_interface.h
+++ b/training/dtrain/score_net_interface.h
@@ -153,7 +153,7 @@ struct PerSentenceBleuScorer
size_t best = numeric_limits<size_t>::max();
for (auto l: ref_ls) {
size_t d = abs(hl-l);
- if (d < best) {
+ if (d < best) {
best_idx = i;
best = d;
}