mirror of
https://gitee.com/fastnlp/fastNLP.git
synced 2024-12-02 04:07:35 +08:00
Merge branch 'dev0.8.0' of github.com:fastnlp/fastNLP into dev0.8.0
This commit is contained in:
commit
2baedee74c
@ -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)
|
||||
|
8
tests/core/log/test_print.py
Normal file
8
tests/core/log/test_print.py
Normal 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)
|
Loading…
Reference in New Issue
Block a user