From f1fac914a1059e054e84b3fb89d47a69c01b6c5a Mon Sep 17 00:00:00 2001 From: Hieu Hoang Date: Sun, 22 Jan 2017 21:45:27 +0000 Subject: [PATCH] const BestHyps --- src/common/base_best_hyps.h | 2 +- src/cpu/decoder/best_hyps.h | 2 +- src/gpu/decoder/best_hyps.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/common/base_best_hyps.h b/src/common/base_best_hyps.h index 21025bcd..c07bc287 100644 --- a/src/common/base_best_hyps.h +++ b/src/common/base_best_hyps.h @@ -13,7 +13,7 @@ public: BestHypsBase() {} BestHypsBase(const BestHypsBase&) = delete; - virtual void operator()(God &god, + virtual void operator()(const God &god, std::vector& beams, const Beam& prevHyps, std::vector& beamSizes, diff --git a/src/cpu/decoder/best_hyps.h b/src/cpu/decoder/best_hyps.h index 2027bad4..7870914c 100644 --- a/src/cpu/decoder/best_hyps.h +++ b/src/cpu/decoder/best_hyps.h @@ -23,7 +23,7 @@ struct ProbCompare { class BestHyps : public BestHypsBase { public: - void operator()(God &god, + void operator()(const God &god, std::vector& beams, const Beam& prevHyps, std::vector& beamSizes, diff --git a/src/gpu/decoder/best_hyps.h b/src/gpu/decoder/best_hyps.h index d486fc1b..545995e6 100644 --- a/src/gpu/decoder/best_hyps.h +++ b/src/gpu/decoder/best_hyps.h @@ -56,7 +56,7 @@ class BestHyps : public BestHypsBase return alignments; } - void operator()(God &god, + void operator()(const God &god, std::vector& beams, const Beam& prevHyps, std::vector& beamSizes,