Skip to content

Commit

Permalink
hotfix: file mode use append (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
jasperzhong committed Jun 23, 2020
1 parent f881fb4 commit 3844228
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion example/mxnet/train_cifar100_byteps_gc.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def main():
gpu_name = '-'.join(gpu_name.split())
filename = "cifar100-%d-%s-%s.log" % (bps.size(),
gpu_name, opt.logging_file)
filehandler = logging.FileHandler(filename, mode='w')
filehandler = logging.FileHandler(filename)
streamhandler = logging.StreamHandler()

logger = logging.getLogger('')
Expand Down
2 changes: 1 addition & 1 deletion example/mxnet/train_gluon_mnist_byteps_gc.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
gpu_name = gpu_name.decode('utf8').split('\n')[-2]
gpu_name = '-'.join(gpu_name.split())
filename = "mnist-%d-%s-%s.log" % (bps.size(), gpu_name, args.logging_file)
filehandler = logging.FileHandler(filename, mode='w')
filehandler = logging.FileHandler(filename)
streamhandler = logging.StreamHandler()

logger = logging.getLogger('')
Expand Down

0 comments on commit 3844228

Please sign in to comment.