print bug fix

This commit is contained in:
yh_cc 2022-05-10 22:30:26 +08:00
parent 0e823758b2
commit a470994686
2 changed files with 9 additions and 1 deletions

View File

@ -24,4 +24,4 @@ def print(*args, sep=' ', end='\n', file=None, flush=False):
line = sep.join(map(str, args))
if logger.isEnabledFor(INFO):
kwargs = logger._add_rank_info({})
logger._log(INFO, line, **kwargs)
logger._log(INFO, line, None, **kwargs)

View File

@ -0,0 +1,8 @@
from fastNLP import print
def test_print():
print("a")
print([1, 2, 3])
print([1,2,3], [4,5,6], 'a')
print(print)