!27210 fix unchanged watchpoint bug

Merge pull request !27210 from parastooashtari/wp_bug_fix
This commit is contained in:
i-robot 2021-12-04 03:52:08 +00:00 committed by Gitee
commit 4a2c1c3a50
1 changed files with 2 additions and 2 deletions

View File

@ -325,10 +325,10 @@ void TensorSummary<T>::InitCalculators(const std::vector<DebugServices::watchpoi
if (wp.allclose_enabled() && prev_tensor_ptr_) {
all_close_[wp_id] = std::make_unique<AllCloseCalculator>();
if (!wp.parameter_list[0].disabled) {
all_close_[wp_id]->set_atol(wp.parameter_list[0].value);
all_close_[wp_id]->set_rtol(wp.parameter_list[0].value);
}
if (!wp.parameter_list[1].disabled) {
all_close_[wp_id]->set_rtol(wp.parameter_list[1].value);
all_close_[wp_id]->set_atol(wp.parameter_list[1].value);
}
} else if (wp.range_enabled()) {
range_counts_[wp_id] = std::make_unique<RangeCountCalculator>();