From 056d61a947b543176817785e730736fa33389e95 Mon Sep 17 00:00:00 2001 From: Parastoo Ashtari Date: Fri, 3 Dec 2021 17:14:30 -0500 Subject: [PATCH] fix unchanged watchpoint condition bug --- mindspore/ccsrc/debug/debugger/tensor_summary.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mindspore/ccsrc/debug/debugger/tensor_summary.cc b/mindspore/ccsrc/debug/debugger/tensor_summary.cc index 38c5cb6d152..f0cb9d50aca 100644 --- a/mindspore/ccsrc/debug/debugger/tensor_summary.cc +++ b/mindspore/ccsrc/debug/debugger/tensor_summary.cc @@ -325,10 +325,10 @@ void TensorSummary::InitCalculators(const std::vector(); 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();