From dc1ee4449c9ef1c53b5e6969bf06e5eff884da91 Mon Sep 17 00:00:00 2001 From: hedaoyuan Date: Fri, 23 Dec 2016 15:38:19 +0800 Subject: [PATCH] follow some comments whit pr 854 after committed --- paddle/function/Function.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/paddle/function/Function.cpp b/paddle/function/Function.cpp index 02880e5ea..eb005e674 100644 --- a/paddle/function/Function.cpp +++ b/paddle/function/Function.cpp @@ -32,14 +32,14 @@ real FuncConfig::get(const std::string& key) const { template <> FuncConfig& FuncConfig::set(const std::string& key, size_t v) { - CHECK(valueMap_.count(key) == 0) << "Duplicated value: " << key; + CHECK_EQ(valueMap_.count(key), 0) << "Duplicated value: " << key; valueMap_[key].s = v; return *this; } template <> FuncConfig& FuncConfig::set(const std::string& key, real v) { - CHECK(valueMap_.count(key) == 0) << "Duplicated value: " << key; + CHECK_EQ(valueMap_.count(key), 0) << "Duplicated value: " << key; valueMap_[key].r = v; return *this; } -- GitLab