Skip to content

Commit

Permalink
fix tmp directories (#48863)
Browse files Browse the repository at this point in the history
  • Loading branch information
sneaxiy committed Dec 8, 2022
1 parent 22bfa57 commit b8c6688
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ def _distributed_launch(self, model, apply_pass, gpus=None, **kwargs):
else:
output_dir = "test_without_pass_{}".format(pid)
remove_path_if_exists(output_dir)
os.makedirs(output_dir, mode=777)
os.makedirs(output_dir, mode=0o777)

input_dump_file = os.path.join(output_dir, 'inputs.bin')
model_dump_file = os.path.join(output_dir, 'model.bin')
Expand Down Expand Up @@ -269,7 +269,7 @@ def _distributed_launch(self, model, apply_pass, gpus=None, **kwargs):

class PassConflictChecker(DistPassTestBase):
def setUp(self):
os.environ['DEBUG'] = '1' # to save the debug directory
os.environ['DEBUG'] = '0'
super().setUp()

def pass_config(self):
Expand Down

0 comments on commit b8c6688

Please sign in to comment.