mirror of
https://github.com/marian-nmt/marian.git
synced 2024-12-11 09:54:22 +03:00
const BestHyps
This commit is contained in:
parent
488cf1048d
commit
f1fac914a1
@ -13,7 +13,7 @@ public:
|
||||
BestHypsBase() {}
|
||||
BestHypsBase(const BestHypsBase&) = delete;
|
||||
|
||||
virtual void operator()(God &god,
|
||||
virtual void operator()(const God &god,
|
||||
std::vector<Beam>& beams,
|
||||
const Beam& prevHyps,
|
||||
std::vector<size_t>& beamSizes,
|
||||
|
@ -23,7 +23,7 @@ struct ProbCompare {
|
||||
class BestHyps : public BestHypsBase
|
||||
{
|
||||
public:
|
||||
void operator()(God &god,
|
||||
void operator()(const God &god,
|
||||
std::vector<Beam>& beams,
|
||||
const Beam& prevHyps,
|
||||
std::vector<size_t>& beamSizes,
|
||||
|
@ -56,7 +56,7 @@ class BestHyps : public BestHypsBase
|
||||
return alignments;
|
||||
}
|
||||
|
||||
void operator()(God &god,
|
||||
void operator()(const God &god,
|
||||
std::vector<Beam>& beams,
|
||||
const Beam& prevHyps,
|
||||
std::vector<size_t>& beamSizes,
|
||||
|
Loading…
Reference in New Issue
Block a user