diff --git a/paddleslim/auto_compression/compressor.py b/paddleslim/auto_compression/compressor.py index fb58c0dfb3fd06030b56c57d745e41b8f5f4cf53..af16e6e910ff4407596a14c5251d6d32fe2be322 100644 --- a/paddleslim/auto_compression/compressor.py +++ b/paddleslim/auto_compression/compressor.py @@ -554,7 +554,7 @@ class AutoCompression: 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):