diff options
Diffstat (limited to 'reference_model/src/verify/verify_utils.cc')
-rw-r--r-- | reference_model/src/verify/verify_utils.cc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/reference_model/src/verify/verify_utils.cc b/reference_model/src/verify/verify_utils.cc index d598e2c..50a98e5 100644 --- a/reference_model/src/verify/verify_utils.cc +++ b/reference_model/src/verify/verify_utils.cc @@ -80,6 +80,10 @@ void from_json(const nlohmann::json& j, AbsErrorVerifyInfo& absErrorInfo) { j.at("lower_bound").get_to(absErrorInfo.lowerBound); } + if (j.contains("normal_divisor")) + { + j.at("normal_divisor").get_to(absErrorInfo.normalDivisor); + } } void from_json(const nlohmann::json& j, RelativeVerifyInfo& rInfo) @@ -108,7 +112,8 @@ void from_json(const nlohmann::json& j, VerifyConfig& cfg) { j.at("reduce_product_info").get_to(cfg.reduceProductInfo); } - cfg.absErrorInfo.lowerBound = 0; + cfg.absErrorInfo.lowerBound = 0; + cfg.absErrorInfo.normalDivisor = 1; if (j.contains("abs_error_info")) { j.at("abs_error_info").get_to(cfg.absErrorInfo); |