fix unchanged watchpoint condition bug

This commit is contained in:
Parastoo Ashtari 2021-12-03 17:14:30 -05:00
parent 0b68a26802
commit 056d61a947
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>();