diff options
author | Hieu Hoang <hieuhoang@gmail.com> | 2013-11-19 17:19:23 +0400 |
---|---|---|
committer | Hieu Hoang <hieuhoang@gmail.com> | 2013-11-19 17:19:23 +0400 |
commit | c2c86ce50d1900db55e420dd08f38facfce50501 (patch) | |
tree | 85ca7cb5d2445dd60cd96325945e14a9626c50b7 /moses/FeatureVector.cpp | |
parent | 90d115496515c7f6e1383c19694bb91e21fdcbe9 (diff) |
replace CHECK with UTIL_THROW_IF in Moses
Diffstat (limited to 'moses/FeatureVector.cpp')
-rw-r--r-- | moses/FeatureVector.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/moses/FeatureVector.cpp b/moses/FeatureVector.cpp index b495e811f..b75436b8b 100644 --- a/moses/FeatureVector.cpp +++ b/moses/FeatureVector.cpp @@ -792,7 +792,7 @@ FValue FVector::sum() const FValue FVector::inner_product(const FVector& rhs) const { - CHECK(m_coreFeatures.size() == rhs.m_coreFeatures.size()); + assert(m_coreFeatures.size() == rhs.m_coreFeatures.size()); FValue product = 0.0; for (const_iterator i = cbegin(); i != cend(); ++i) { product += ((i->second)*(rhs.get(i->first))); @@ -811,7 +811,7 @@ void FVector::merge(const FVector &other) const FValue otherVal = other.m_coreFeatures[i]; if (otherVal) { - CHECK(thisVal == 0 || thisVal == otherVal); + assert(thisVal == 0 || thisVal == otherVal); thisVal = otherVal; } } |