Skip to content

Commit

Permalink
Safe remove tmpdir (apache#4781)
Browse files Browse the repository at this point in the history
  • Loading branch information
comaniac authored and alexwong committed Feb 28, 2020
1 parent 242b5b7 commit 2086d92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/tvm/autotvm/measure/measure_methods.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def __init__(self, timeout=10, n_parallel=None, build_func='default'):
def build(self, measure_inputs):
results = []

shutil.rmtree(self.tmp_dir)
shutil.rmtree(self.tmp_dir, ignore_errors=True)
self.tmp_dir = tempfile.mkdtemp()

for i in range(0, len(measure_inputs), self.n_parallel):
Expand Down

0 comments on commit 2086d92

Please sign in to comment.