From d9e84e468bc43a46ee465509cc13020e418e9916 Mon Sep 17 00:00:00 2001 From: wangmin Date: Wed, 16 Sep 2020 19:58:48 +0800 Subject: [PATCH] remove rm -rf in testcase of bert_thor --- .../models/bert/bert_performance/test_bert_thor_mlperf.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/tests/st/networks/models/bert/bert_performance/test_bert_thor_mlperf.py b/tests/st/networks/models/bert/bert_performance/test_bert_thor_mlperf.py index 55c99691442..c5c3bbb2356 100644 --- a/tests/st/networks/models/bert/bert_performance/test_bert_thor_mlperf.py +++ b/tests/st/networks/models/bert/bert_performance/test_bert_thor_mlperf.py @@ -108,9 +108,6 @@ def create_bert_dataset(device_num=1, rank=0, do_shuffle="true", data_dir=None, return ds def train_process_bert_thor(q, device_id, epoch_size, device_num): - for i in range(device_num): - os.system("rm -rf " + str(i)) - os.system("mkdir " + str(device_id)) os.chdir(str(device_id)) context.set_context(mode=context.GRAPH_MODE, device_target="Ascend", device_id=device_id, save_graphs=False)