emoji-safe default logging (#8888)
* emoji-safe default logging * implement everywhere
This commit is contained in:
1 parent
73ed7a5e7a
commit
8f28ea4945
6 files changed
+24
-22
No files matched your search
@@ -97,7 +97,7 @@ def select_device(device='', batch_size=0, newline=True):
|
||||
|
||||
if not newline:
|
||||
s = s.rstrip()
|
||||
LOGGER.info(s.encode().decode('ascii', 'ignore') if platform.system() == 'Windows' else s) # emoji-safe
|
||||
LOGGER.info(s)
|
||||
return torch.device(arg)
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user