Update.
authorFrançois Fleuret <francois@fleuret.org>
Sat, 11 Mar 2023 06:41:59 +0000 (07:41 +0100)
committerFrançois Fleuret <francois@fleuret.org>
Sat, 11 Mar 2023 06:41:59 +0000 (07:41 +0100)
main.py

diff --git a/main.py b/main.py
index 5b18985..e741094 100755 (executable)
--- a/main.py
+++ b/main.py
@@ -94,7 +94,7 @@ except FileExistsError:
         print(f"result directory {args.result_dir} already exists")
         exit(1)
 
-log_file = open(os.path.join(args.result_dir, args.log_filename), "w")
+log_file = open(os.path.join(args.result_dir, args.log_filename), "a")
 
 if args.seed >= 0:
     # torch.backends.cudnn.deterministic = True