Skip to content

Commit

Permalink
fix create tmp_dir in Windows (PaddlePaddle#1312)
Browse files Browse the repository at this point in the history
  • Loading branch information
yghstill authored Jul 26, 2022
1 parent c3032f3 commit 419ffd3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion paddleslim/auto_compression/compressor.py
Original file line number Diff line number Diff line change
Expand Up @@ -554,7 +554,7 @@ def _compiled_program(self, program_info, strategy):

def create_tmp_dir(self, base_dir, prefix="tmp"):
# create a new temp directory in final dir
s_datetime = strftime("%Y-%m-%d-%H:%M:%S", gmtime())
s_datetime = strftime("%Y_%m_%d_%H_%M_%S", gmtime())
tmp_base_name = "_".join([prefix, str(os.getpid()), s_datetime])
tmp_dir = os.path.join(base_dir, tmp_base_name)
if not os.path.exists(tmp_dir):
Expand Down

0 comments on commit 419ffd3

Please sign in to comment.