This website works better with JavaScript.
Home
Issues
Pull Requests
Milestones
AI流水线
Repositories
Datasets
Forum
实训
竞赛
大数据
Register
Sign In
hummingbird
/
fastNLP
Not watched
Unwatch
Watch all
Watch but not notify
2
Star
0
Fork
0
Code
Releases
13
Wiki
Activity
Issues
0
Pull Requests
0
Datasets
Model
Cloudbrain
Browse Source
Merge branch 'dev0.8.0' of github.com:fastnlp/fastNLP into dev0.8.0
tags/v1.0.0alpha
MorningForest
2 years ago
parent
6340de06ea
a470994686
commit
2baedee74c
2 changed files
with
9 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
fastNLP/core/log/print.py
+8
-0
tests/core/log/test_print.py
+ 1
- 1
fastNLP/core/log/print.py
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)
+ 8
- 0
tests/core/log/test_print.py
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)
Write
Preview
Loading…
Cancel
Save