comment out g_numHypos

This commit is contained in:
Hieu Hoang 2015-11-10 16:27:28 +00:00
parent 017e902441
commit d748cd9484
4 changed files with 9 additions and 9 deletions

View File

@ -9,7 +9,7 @@
using namespace std;
extern size_t g_numHypos;
//extern size_t g_numHypos;
istream &GetInputStream(Moses::Parameter &params)
{
@ -51,6 +51,6 @@ int main(int argc, char** argv)
delete &inStream;
}
cerr << "g_numHypos=" << g_numHypos << endl;
// cerr << "g_numHypos=" << g_numHypos << endl;
cerr << "Finished" << endl;
}

View File

@ -16,11 +16,11 @@
using namespace std;
size_t g_numHypos = 0;
//size_t g_numHypos = 0;
Hypothesis *Hypothesis::Create(Manager &mgr)
{
++g_numHypos;
// ++g_numHypos;
Hypothesis *ret;
Recycler<Hypothesis*> &recycler = mgr.GetHypoRecycle();

View File

@ -70,7 +70,7 @@ using namespace Moses;
namespace Moses
{
extern size_t g_numHypos;
//extern size_t g_numHypos;
void OutputFeatureWeightsForHypergraph(std::ostream &outputSearchGraphStream)
{
@ -278,7 +278,7 @@ batch_run()
pool.Stop(true); //flush remaining jobs
#endif
cerr << "g_numHypos=" << Moses::g_numHypos << endl;
// cerr << "g_numHypos=" << Moses::g_numHypos << endl;
FeatureFunction::Destroy();

View File

@ -43,7 +43,7 @@ using namespace std;
namespace Moses
{
size_t g_numHypos = 0;
//size_t g_numHypos = 0;
Hypothesis::
Hypothesis(Manager& manager, InputType const& source, const TranslationOption &initialTransOpt, const Bitmap &bitmap)
@ -63,7 +63,7 @@ Hypothesis(Manager& manager, InputType const& source, const TranslationOption &i
, m_manager(manager)
, m_id(m_manager.GetNextHypoId())
{
++g_numHypos;
// ++g_numHypos;
// used for initial seeding of trans process
// initialize scores
//_hash_computed = false;
@ -95,7 +95,7 @@ Hypothesis(const Hypothesis &prevHypo, const TranslationOption &transOpt, const
, m_manager(prevHypo.GetManager())
, m_id(m_manager.GetNextHypoId())
{
++g_numHypos;
// ++g_numHypos;
m_currScoreBreakdown.PlusEquals(transOpt.GetScoreBreakdown());
m_wordDeleted = transOpt.IsDeletionOption();