diff options
author | Hieu Hoang <hieuhoang@gmail.com> | 2015-10-26 14:25:01 +0300 |
---|---|---|
committer | Hieu Hoang <hieuhoang@gmail.com> | 2015-10-26 14:25:01 +0300 |
commit | d30a10e52cc69944beef3d067a403d269436297f (patch) | |
tree | 3543f6e7f4707bedf1e6f92e3195511349c03fe1 /moses/HypothesisStackCubePruning.h | |
parent | 73d8dff5fe9636e76181270410e933167d3de3ea (diff) |
revert using pointers and references in cube pruning classes, instead create bitmap. Faster, at least for single threaded operation. Kinda strange
Diffstat (limited to 'moses/HypothesisStackCubePruning.h')
-rw-r--r-- | moses/HypothesisStackCubePruning.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/moses/HypothesisStackCubePruning.h b/moses/HypothesisStackCubePruning.h index 1b601cb95..e274a4293 100644 --- a/moses/HypothesisStackCubePruning.h +++ b/moses/HypothesisStackCubePruning.h @@ -37,7 +37,7 @@ class BitmapContainer; class TranslationOptionList; class Manager; -typedef boost::unordered_map<const Bitmap*, BitmapContainer*, UnorderedComparer<Bitmap>, UnorderedComparer<Bitmap> > _BMType; +typedef boost::unordered_map<Bitmap, BitmapContainer*, UnorderedComparer<Bitmap>, UnorderedComparer<Bitmap> > _BMType; /** A stack for phrase-based decoding with cube-pruning. */ class HypothesisStackCubePruning : public HypothesisStack |