We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b132fde commit dc1ee44Copy full SHA for dc1ee44
paddle/function/Function.cpp
@@ -32,14 +32,14 @@ real FuncConfig::get<real>(const std::string& key) const {
32
33
template <>
34
FuncConfig& FuncConfig::set<size_t>(const std::string& key, size_t v) {
35
- CHECK(valueMap_.count(key) == 0) << "Duplicated value: " << key;
+ CHECK_EQ(valueMap_.count(key), 0) << "Duplicated value: " << key;
36
valueMap_[key].s = v;
37
return *this;
38
}
39
40
41
FuncConfig& FuncConfig::set<real>(const std::string& key, real v) {
42
43
valueMap_[key].r = v;
44
45
0 commit comments