From c89584eade14626638ae2ba2e51d9498bf3e39bb Mon Sep 17 00:00:00 2001 From: yujianfeng Date: Mon, 28 Jun 2021 15:56:22 +0800 Subject: [PATCH] Fix the bprop mindir generator --- mindspore/ops/bprop_mindir/generate_mindir.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mindspore/ops/bprop_mindir/generate_mindir.py b/mindspore/ops/bprop_mindir/generate_mindir.py index 1a2b8431721..d137b3650af 100644 --- a/mindspore/ops/bprop_mindir/generate_mindir.py +++ b/mindspore/ops/bprop_mindir/generate_mindir.py @@ -105,7 +105,7 @@ if __name__ == "__main__": # copy the bprop source files to the installed path. backup_suffix = "_generate_bak" if copy_flag is True: - shutil.rmtree(bprop_installed_dir + backup_suffix) + shutil.rmtree(bprop_installed_dir + backup_suffix, ignore_errors=True) os.rename(bprop_installed_dir, bprop_installed_dir + backup_suffix) os.mkdir(bprop_installed_dir) ls = os.listdir(bprop_src_dir)