High-level library to help with training and evaluating neural networks in PyTorch flexibly and transparently.
BSD 3-Clause "New" or "Revised" License
4.5k
stars
608
forks
source link
setup_logger: add optional arg `encoding` for FileHandler #3240
Closed
sjiang95 closed 2 months ago
By default, the encoding is
utf-8
for compatibility with CJK characters.Fixes #3239
Description:
Add an optional arg
encoding
tosetup_logger()
. By default, theencoding
isutf-8
for compatibility with CJK characters.Check list:
Test:
Can use the following script for test
In
utf8.log
while in
defaultEncode.log