diff --git a/debug/accuracy_tools/msprobe/mindspore/grad_probe/grad_analyzer.py b/debug/accuracy_tools/msprobe/mindspore/grad_probe/grad_analyzer.py index c46d55b7b481bc89a56f2eac997c1618fb2cdda2..79f56436239e13a14b5826a693f634f08e157926 100644 --- a/debug/accuracy_tools/msprobe/mindspore/grad_probe/grad_analyzer.py +++ b/debug/accuracy_tools/msprobe/mindspore/grad_probe/grad_analyzer.py @@ -245,6 +245,8 @@ class CSVGenerator(Process): return ["Max", "Min", "Norm", "Shape"] def get_dist_header(self) -> List[str]: + if not self.bounds: + return [] intervals = [] for i, _ in enumerate(self.bounds): if i == 0: